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 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
31 Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText NOTIFY informativeTextChanged FINAL)
32 Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText NOTIFY detailedTextChanged FINAL)
33 Q_PROPERTY(QPlatformDialogHelper::StandardButtons buttons READ buttons WRITE setButtons NOTIFY buttonsChanged FINAL)
34 QML_EXTENDED_NAMESPACE(QPlatformDialogHelper)
37 explicit QQuickLabsPlatformMessageDialog(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();
56 void clicked(QPlatformDialogHelper::StandardButton button);
60 void saveAllClicked();
63 void yesToAllClicked();
65 void noToAllClicked();
71 void discardClicked();
75 void restoreDefaultsClicked();
78 void onCreate(QPlatformDialogHelper *dialog) override;
79 void onShow(QPlatformDialogHelper *dialog) override;
82 void handleClick(QPlatformDialogHelper::StandardButton button);
85 QSharedPointer<QMessageDialogOptions> m_options;