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
22QT_BEGIN_NAMESPACE
23
24class QQuickMessageDialogImplPrivate : public QQuickDialogPrivate
25{
26 Q_DECLARE_PUBLIC(QQuickMessageDialogImpl)
27
28public:
29 QQuickMessageDialogImplPrivate();
30
31 static QQuickMessageDialogImplPrivate *get(QQuickMessageDialogImpl *dialog)
32 {
33 return dialog->d_func();
34 }
35
36 QQuickMessageDialogImplAttached *attachedOrWarn();
37
38 void handleClick(QQuickAbstractButton *button) override;
39
40 QSharedPointer<QMessageDialogOptions> options;
41 bool m_showDetailedText = false;
42};
43
44class QQuickMessageDialogImplAttachedPrivate : public QObjectPrivate
45{
46 Q_DECLARE_PUBLIC(QQuickMessageDialogImplAttached)
47public:
48 QPointer<QQuickDialogButtonBox> buttonBox;
49 QPointer<QQuickButton> detailedTextButton;
50};
51
52QT_END_NAMESPACE
53
54#endif // QQUICKMESSAGEDIALOGIMPL_P_P_H
55

source code of qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickmessagedialogimpl_p_p.h