diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-14 16:36:57 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-14 14:40:49 +0000 |
commit | 8773fdb215709a6680070a462082a42aa3b82585 (patch) | |
tree | 3a29dc22a8fe21abb21890917107e3d52516304d /src/imports/platform/qquickplatformmessagedialog_p.h | |
parent | 781aae2f348190796475bc28003813a9591678ed (diff) |
Platform: add Dialog::done(int) and Dialog::result
A more generic replacement for MessageDialog.clickedButton.
Change-Id: I060f70a48ab258485e3155188e483c4cf24210e0
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, 0 insertions, 5 deletions
diff --git a/src/imports/platform/qquickplatformmessagedialog_p.h b/src/imports/platform/qquickplatformmessagedialog_p.h index 87ead6f8..656d8f1f 100644 --- a/src/imports/platform/qquickplatformmessagedialog_p.h +++ b/src/imports/platform/qquickplatformmessagedialog_p.h @@ -60,7 +60,6 @@ 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: @@ -78,14 +77,11 @@ 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(); @@ -116,7 +112,6 @@ private Q_SLOTS: private: QSharedPointer<QMessageDialogOptions> m_options; - QPlatformDialogHelper::StandardButton m_clickedButton; }; QT_END_NAMESPACE |