28 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
29 Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText NOTIFY informativeTextChanged FINAL)
30 Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText NOTIFY detailedTextChanged FINAL)
31 Q_PROPERTY(QPlatformDialogHelper::StandardButtons buttons READ buttons WRITE setButtons NOTIFY buttonsChanged FINAL)
32 QML_EXTENDED_NAMESPACE(QPlatformDialogHelper)
33 QML_NAMED_ELEMENT(MessageDialog)
34 QML_ADDED_IN_VERSION(6, 3)
37 explicit QQuickMessageDialog(QObject *parent =
nullptr);
40 void setText(
const QString &text);
42 QString informativeText()
const;
43 void setInformativeText(
const QString &text);
45 QString detailedText()
const;
46 void setDetailedText(
const QString &text);
48 QPlatformDialogHelper::StandardButtons buttons()
const;
49 void setButtons(QPlatformDialogHelper::StandardButtons buttons);
53 void informativeTextChanged();
54 void detailedTextChanged();
55 void buttonsChanged();
57 void buttonClicked(QPlatformDialogHelper::StandardButton button,
58 QPlatformDialogHelper::ButtonRole role);
61 void handleClick(QPlatformDialogHelper::StandardButton button,
62 QPlatformDialogHelper::ButtonRole role);
65 void onCreate(QPlatformDialogHelper *dialog) override;
66 void onShow(QPlatformDialogHelper *dialog) override;
67 int dialogCode()
const override;
70 QSharedPointer<QMessageDialogOptions> m_options;
71 QPlatformDialogHelper::ButtonRole m_roleOfLastButtonPressed = QPlatformDialogHelper::NoRole;