5#ifndef QQUICKLABSPLATFORMMESSAGEDIALOG_P_H
6#define QQUICKLABSPLATFORMMESSAGEDIALOG_P_H
20#include <QtQml/qqml.h>
22#if QT_DEPRECATED_SINCE(6
, 9
)
26class QQuickLabsPlatformMessageDialog :
public QQuickLabsPlatformDialog
29 QML_NAMED_ELEMENT(MessageDialog)
30 QML_ADDED_IN_VERSION(1, 0)
31 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
32 Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText NOTIFY informativeTextChanged FINAL)
33 Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText NOTIFY detailedTextChanged FINAL)
34 Q_PROPERTY(QPlatformDialogHelper::StandardButtons buttons READ buttons WRITE setButtons NOTIFY buttonsChanged FINAL)
35 QML_EXTENDED_NAMESPACE(QPlatformDialogHelper)
38 explicit QQuickLabsPlatformMessageDialog(QObject *parent =
nullptr);
41 void setText(
const QString &text);
43 QString informativeText()
const;
44 void setInformativeText(
const QString &text);
46 QString detailedText()
const;
47 void setDetailedText(
const QString &text);
49 QPlatformDialogHelper::StandardButtons buttons()
const;
50 void setButtons(QPlatformDialogHelper::StandardButtons buttons);
54 void informativeTextChanged();
55 void detailedTextChanged();
56 void buttonsChanged();
57 void clicked(QPlatformDialogHelper::StandardButton button);
61 void saveAllClicked();
64 void yesToAllClicked();
66 void noToAllClicked();
72 void discardClicked();
76 void restoreDefaultsClicked();
79 void onCreate(QPlatformDialogHelper *dialog) override;
80 void onShow(QPlatformDialogHelper *dialog) override;
83 void handleClick(QPlatformDialogHelper::StandardButton button);
86 QSharedPointer<QMessageDialogOptions> m_options;