36 Q_PROPERTY(QString text READ text NOTIFY optionsChanged)
37 Q_PROPERTY(QString informativeText READ informativeText NOTIFY optionsChanged)
38 Q_PROPERTY(QString detailedText READ detailedText NOTIFY optionsChanged)
39 Q_PROPERTY(
bool showDetailedText READ showDetailedText NOTIFY showDetailedTextChanged)
40 QML_NAMED_ELEMENT(MessageDialogImpl)
41 QML_ATTACHED(QQuickMessageDialogImplAttached)
42 QML_ADDED_IN_VERSION(6, 3)
44 explicit QQuickMessageDialogImpl(QObject *parent =
nullptr);
46 static QQuickMessageDialogImplAttached *qmlAttachedProperties(QObject *object);
48 QSharedPointer<QMessageDialogOptions> options()
const;
49 void setOptions(
const QSharedPointer<QMessageDialogOptions> &options);
51 bool showDetailedText()
const;
53 QString informativeText()
const;
54 QString detailedText()
const;
57 void buttonClicked(QPlatformDialogHelper::StandardButton button,
58 QPlatformDialogHelper::ButtonRole role);
59 void showDetailedTextChanged();
60 void optionsChanged();
63 void toggleShowDetailedText();
66 Q_DISABLE_COPY(QQuickMessageDialogImpl)
67 Q_DECLARE_PRIVATE(QQuickMessageDialogImpl)
73 Q_PROPERTY(QQuickDialogButtonBox *buttonBox READ buttonBox WRITE setButtonBox NOTIFY
75 Q_PROPERTY(QQuickButton *detailedTextButton READ detailedTextButton WRITE setDetailedTextButton
76 NOTIFY detailedTextButtonChanged)
78 explicit QQuickMessageDialogImplAttached(QObject *parent =
nullptr);
80 QQuickDialogButtonBox *buttonBox()
const;
81 void setButtonBox(QQuickDialogButtonBox *buttons);
83 QQuickButton *detailedTextButton()
const;
84 void setDetailedTextButton(QQuickButton *detailedTextButton);
87 void buttonBoxChanged();
88 void detailedTextButtonChanged();
91 Q_DISABLE_COPY(QQuickMessageDialogImplAttached)
92 Q_DECLARE_PRIVATE(QQuickMessageDialogImplAttached)