Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QIOSMESSAGEDIALOG_H
6
#
define
QIOSMESSAGEDIALOG_H
7
8
#
include
<
QtCore
/
qeventloop
.
h
>
9
#
include
<
qpa
/
qplatformdialoghelper
.
h
>
10
11
Q_FORWARD_DECLARE_OBJC_CLASS
(
UIAlertController
);
12
Q_FORWARD_DECLARE_OBJC_CLASS
(
UIAlertAction
);
13
14
QT_BEGIN_NAMESPACE
15
16
class
QIOSMessageDialog :
public
QPlatformMessageDialogHelper
17
{
18
public
:
19
QIOSMessageDialog();
20
~QIOSMessageDialog();
21
22
void
exec() override;
23
bool
show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
24
void
hide() override;
25
26
private
:
27
QEventLoop m_eventLoop;
28
UIAlertController *m_alertController;
29
QString messageTextPlain();
30
UIAlertAction *createAction(StandardButton button);
31
UIAlertAction *createAction(
const
QMessageDialogOptions::CustomButton &customButton);
32
};
33
34
QT_END_NAMESPACE
35
36
#
endif
// QIOSMESSAGEDIALOG_H
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(NSObject)
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(UIAlertAction)
QStringLiteral
#define QStringLiteral(str)
Definition
qstring.h:1865
qtbase
src
plugins
platforms
ios
qiosmessagedialog.h
Generated on
for Qt by
1.18.0