From 4f6f82bb5dd2ac5d64c1f5c22f6fd3e524662f98 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Sun, 2 Apr 2017 09:22:44 +0200 Subject: 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 --- src/quicktemplates2/qquickdialog.cpp | 2 ++ src/quicktemplates2/qquickdialogbuttonbox.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') 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. -- cgit v1.2.3