diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-13 20:08:59 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-13 20:51:27 +0000 |
commit | 29783c4cccbcccc9ce071561c7682cc113ef5a45 (patch) | |
tree | 0ad6ef45c9577d5004b00b35c71513fe45c7fa00 /src/imports/platform/qquickplatformmessagedialog_p.h | |
parent | 887dc4744dca5c2e853fd49f600e597dc48c821d (diff) |
Platform.MessageDialog: fix accepted and rejected signals
The clicked signal from the platform dialog cannot be wired to
the close slot. We must check the role and act accordingly.
Change-Id: I2cb9e106814f9b901d76dd79ff8eeeafe98d4d46
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/platform/qquickplatformmessagedialog_p.h b/src/imports/platform/qquickplatformmessagedialog_p.h index 00ba190e..2ba461ca 100644 --- a/src/imports/platform/qquickplatformmessagedialog_p.h +++ b/src/imports/platform/qquickplatformmessagedialog_p.h @@ -87,6 +87,9 @@ Q_SIGNALS: protected: void applyOptions() override; +private Q_SLOTS: + void handleClick(QPlatformDialogHelper::StandardButton button); + private: QSharedPointer<QMessageDialogOptions> m_options; }; |