diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-13 20:29:41 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-13 20:53:55 +0000 |
commit | 7121e119167165658fc1b92e65a9be4ddedc5683 (patch) | |
tree | f27e8f5c031f8a86154f6affbc4cda53c5ce34d2 /src/imports/platform/qquickplatformmessagedialog_p.h | |
parent | ef102fcb366e25fb59d943c642568bb37990b629 (diff) |
Platform: add MessageDialog.clickedButton
To be more in line with QtQuick.Dialogs 1.x.
Change-Id: Ic512222a88a376ebc142563dceccbbb1c3b98a75
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/platform/qquickplatformmessagedialog_p.h')
-rw-r--r-- | src/imports/platform/qquickplatformmessagedialog_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/imports/platform/qquickplatformmessagedialog_p.h b/src/imports/platform/qquickplatformmessagedialog_p.h index 2a8f76c1..bd44082e 100644 --- a/src/imports/platform/qquickplatformmessagedialog_p.h +++ b/src/imports/platform/qquickplatformmessagedialog_p.h @@ -60,6 +60,7 @@ class QQuickPlatformMessageDialog : public QQuickPlatformDialog Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText NOTIFY informativeTextChanged FINAL) Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText NOTIFY detailedTextChanged FINAL) Q_PROPERTY(QPlatformDialogHelper::StandardButtons buttons READ buttons WRITE setButtons NOTIFY buttonsChanged FINAL) + Q_PROPERTY(QPlatformDialogHelper::StandardButton clickedButton READ clickedButton NOTIFY clickedButtonChanged FINAL) Q_FLAGS(QPlatformDialogHelper::StandardButtons) public: @@ -77,11 +78,14 @@ public: QPlatformDialogHelper::StandardButtons buttons() const; void setButtons(QPlatformDialogHelper::StandardButtons buttons); + QPlatformDialogHelper::StandardButton clickedButton() const; + Q_SIGNALS: void textChanged(); void informativeTextChanged(); void detailedTextChanged(); void buttonsChanged(); + void clickedButtonChanged(); void clicked(QPlatformDialogHelper::StandardButton button); void okClicked(); @@ -111,6 +115,7 @@ private Q_SLOTS: private: QSharedPointer<QMessageDialogOptions> m_options; + QPlatformDialogHelper::StandardButton m_clickedButton; }; QT_END_NAMESPACE |