| 1 | // Copyright (C) 2021 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 QQUICKMESSAGEDIALOGIMPL_P_P_H |
| 5 | #define QQUICKMESSAGEDIALOGIMPL_P_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This Folder is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header Folder may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtQuickTemplates2/private/qquickdialog_p_p.h> |
| 19 | |
| 20 | #include "qquickmessagedialogimpl_p.h" |
| 21 | |
| 22 | #include <QtCore/qpointer.h> |
| 23 | |
| 24 | QT_BEGIN_NAMESPACE |
| 25 | |
| 26 | class QQuickMessageDialogImplPrivate : public QQuickDialogPrivate |
| 27 | { |
| 28 | Q_DECLARE_PUBLIC(QQuickMessageDialogImpl) |
| 29 | |
| 30 | public: |
| 31 | QQuickMessageDialogImplPrivate(); |
| 32 | |
| 33 | static QQuickMessageDialogImplPrivate *get(QQuickMessageDialogImpl *dialog) |
| 34 | { |
| 35 | return dialog->d_func(); |
| 36 | } |
| 37 | |
| 38 | QQuickMessageDialogImplAttached *attachedOrWarn(); |
| 39 | |
| 40 | void handleClick(QQuickAbstractButton *button) override; |
| 41 | |
| 42 | QSharedPointer<QMessageDialogOptions> options; |
| 43 | bool m_showDetailedText = false; |
| 44 | }; |
| 45 | |
| 46 | class QQuickMessageDialogImplAttachedPrivate : public QObjectPrivate |
| 47 | { |
| 48 | Q_DECLARE_PUBLIC(QQuickMessageDialogImplAttached) |
| 49 | public: |
| 50 | QPointer<QQuickDialogButtonBox> buttonBox; |
| 51 | QPointer<QQuickButton> detailedTextButton; |
| 52 | }; |
| 53 | |
| 54 | QT_END_NAMESPACE |
| 55 | |
| 56 | #endif // QQUICKMESSAGEDIALOGIMPL_P_P_H |
| 57 |
