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 void itemChange(QQuickItem::ItemChange change,
const QQuickItem::ItemChangeData &data) override;
68 Q_DISABLE_COPY(QQuickMessageDialogImpl)
69 Q_DECLARE_PRIVATE(QQuickMessageDialogImpl)
75 Q_PROPERTY(QQuickDialogButtonBox *buttonBox READ buttonBox WRITE setButtonBox NOTIFY
77 Q_PROPERTY(QQuickButton *detailedTextButton READ detailedTextButton WRITE setDetailedTextButton
78 NOTIFY detailedTextButtonChanged)
80 explicit QQuickMessageDialogImplAttached(QObject *parent =
nullptr);
82 QQuickDialogButtonBox *buttonBox()
const;
83 void setButtonBox(QQuickDialogButtonBox *buttons);
85 QQuickButton *detailedTextButton()
const;
86 void setDetailedTextButton(QQuickButton *detailedTextButton);
89 void buttonBoxChanged();
90 void detailedTextButtonChanged();
93 Q_DISABLE_COPY(QQuickMessageDialogImplAttached)
94 Q_DECLARE_PRIVATE(QQuickMessageDialogImplAttached)