Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
13
14QT_BEGIN_NAMESPACE
15
16class QIOSMessageDialog : public QPlatformMessageDialogHelper
17{
18public:
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
26private:
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
34QT_END_NAMESPACE
35
36#endif // QIOSMESSAGEDIALOG_H
Q_FORWARD_DECLARE_OBJC_CLASS(NSObject)
Q_FORWARD_DECLARE_OBJC_CLASS(UIAlertAction)
#define QStringLiteral(str)
Definition qstring.h:1826