diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-05-17 15:14:57 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-05-19 05:15:37 +0000 |
commit | fd4d347b0cda7de4040bb36be362884c0c5aea3d (patch) | |
tree | 50452da851932be76cb0014cb61d0f7085f33f63 /src/quicktemplates2/qquickdialog_p.h | |
parent | 13452a48c8eabdc734615ca4759da9a72cb9d691 (diff) |
Add missing QQuickDialog::standardButton() invokable method
[ChangeLog][Controls][Dialog] Added a standardButton() method for
accessing the standard buttons in the dialog's button box.
Change-Id: I7a92a0176985e1bc2c1a82f4bc9e78b813eee802
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdialog_p.h')
-rw-r--r-- | src/quicktemplates2/qquickdialog_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdialog_p.h b/src/quicktemplates2/qquickdialog_p.h index 0743ee0a..e6c8d1ce 100644 --- a/src/quicktemplates2/qquickdialog_p.h +++ b/src/quicktemplates2/qquickdialog_p.h @@ -54,6 +54,7 @@ QT_BEGIN_NAMESPACE class QQuickDialogPrivate; +class QQuickAbstractButton; class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickDialog : public QQuickPopup { @@ -79,6 +80,7 @@ public: QPlatformDialogHelper::StandardButtons standardButtons() const; void setStandardButtons(QPlatformDialogHelper::StandardButtons buttons); + Q_REVISION(3) Q_INVOKABLE QQuickAbstractButton *standardButton(QPlatformDialogHelper::StandardButton button) const; enum StandardCode { Rejected, Accepted }; Q_ENUM(StandardCode) |