Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qiosmessagedialog.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef QIOSMESSAGEDIALOG_H
5
#define QIOSMESSAGEDIALOG_H
6
7
#include <QtCore/qeventloop.h>
8
#include <qpa/qplatformdialoghelper.h>
9
10
Q_FORWARD_DECLARE_OBJC_CLASS
(UIAlertController);
11
Q_FORWARD_DECLARE_OBJC_CLASS
(UIAlertAction);
12
13
QT_BEGIN_NAMESPACE
14
15
class
QIOSMessageDialog
:
public
QPlatformMessageDialogHelper
16
{
17
public
:
18
QIOSMessageDialog
();
19
~QIOSMessageDialog
();
20
21
void
exec
()
override
;
22
bool
show
(Qt::WindowFlags windowFlags,
Qt::WindowModality
windowModality,
QWindow
*
parent
)
override
;
23
void
hide
()
override
;
24
25
private
:
26
QEventLoop
m_eventLoop;
27
UIAlertController *m_alertController;
28
QString
messageTextPlain();
29
UIAlertAction *createAction(
StandardButton
button
);
30
UIAlertAction *createAction(
const
QMessageDialogOptions::CustomButton
&customButton);
31
};
32
33
QT_END_NAMESPACE
34
35
#endif
// QIOSMESSAGEDIALOG_H
36
QEventLoop
\inmodule QtCore
Definition
qeventloop.h:16
QIOSMessageDialog
Definition
qiosmessagedialog.h:16
QIOSMessageDialog::hide
void hide() override
Definition
qiosmessagedialog.mm:135
QIOSMessageDialog::QIOSMessageDialog
QIOSMessageDialog()
Definition
qiosmessagedialog.mm:19
QIOSMessageDialog::exec
void exec() override
Definition
qiosmessagedialog.mm:82
QIOSMessageDialog::~QIOSMessageDialog
~QIOSMessageDialog()
Definition
qiosmessagedialog.mm:24
QObject::parent
QObject * parent() const
Returns a pointer to the parent object.
Definition
qobject.h:346
QPlatformDialogHelper::StandardButton
StandardButton
Definition
qplatformdialoghelper.h:53
QPlatformMessageDialogHelper
The QPlatformMessageDialogHelper class allows for platform-specific customization of Message dialogs.
Definition
qplatformdialoghelper.h:483
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QWindow
\inmodule QtGui
Definition
qwindow.h:63
button
QPushButton * button
[2]
Definition
doc_src_properties.cpp:35
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
Qt::WindowModality
WindowModality
Definition
qnamespace.h:1547
Q_FORWARD_DECLARE_OBJC_CLASS
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
Definition
qdarwinhelpers.h:20
show
view show()
[18] //! [19]
QMessageDialogOptions::CustomButton
Definition
qplatformdialoghelper.h:447
qtbase
src
plugins
platforms
ios
qiosmessagedialog.h
Generated by
1.10.0