diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2017-04-02 09:22:44 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2017-04-03 07:03:39 +0000 |
commit | 4f6f82bb5dd2ac5d64c1f5c22f6fd3e524662f98 (patch) | |
tree | 1635c929209e37dad10a0cde68f52af6e7483c79 /src | |
parent | f720bc8e38dfdc14c48ffe3178a704f5d130f932 (diff) |
Doc: mention that standardButtons is ordered according to platform
This was mentioned in the detailed description of DialogButtonBox,
but could easily be missed by users looking at Dialog's standardButtons
documentation, because that doesn't mention DialogButtonBox.
Change-Id: If3229589e24992d3071388a044246906e739a918
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/quicktemplates2/qquickdialog.cpp | 2 | ||||
-rw-r--r-- | src/quicktemplates2/qquickdialogbuttonbox.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdialog.cpp b/src/quicktemplates2/qquickdialog.cpp index fbb612b3..3ac99caa 100644 --- a/src/quicktemplates2/qquickdialog.cpp +++ b/src/quicktemplates2/qquickdialog.cpp @@ -257,6 +257,8 @@ void QQuickDialog::setFooter(QQuickItem *footer) \snippet qtquickcontrols2-dialog.qml 1 + The buttons will be positioned in the appropriate order for the user's platform. + Possible flags: \value Dialog.Ok An "OK" button defined with the \c AcceptRole. \value Dialog.Open An "Open" button defined with the \c AcceptRole. diff --git a/src/quicktemplates2/qquickdialogbuttonbox.cpp b/src/quicktemplates2/qquickdialogbuttonbox.cpp index f1971635..386577da 100644 --- a/src/quicktemplates2/qquickdialogbuttonbox.cpp +++ b/src/quicktemplates2/qquickdialogbuttonbox.cpp @@ -437,6 +437,8 @@ void QQuickDialogButtonBox::resetAlignment() \snippet qtquickcontrols2-dialogbuttonbox.qml 1 + The buttons will be positioned in the appropriate order for the user's platform. + Possible flags: \value DialogButtonBox.Ok An "OK" button defined with the \c AcceptRole. \value DialogButtonBox.Open An "Open" button defined with the \c AcceptRole. |