diff options
Diffstat (limited to 'src/quicktemplates/qquickdialogbuttonbox.cpp')
| -rw-r--r-- | src/quicktemplates/qquickdialogbuttonbox.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/quicktemplates/qquickdialogbuttonbox.cpp b/src/quicktemplates/qquickdialogbuttonbox.cpp index 33c5d798fd..fb14d9bcb3 100644 --- a/src/quicktemplates/qquickdialogbuttonbox.cpp +++ b/src/quicktemplates/qquickdialogbuttonbox.cpp @@ -506,7 +506,6 @@ void QQuickDialogButtonBox::setPosition(Position position) This property holds the alignment of the buttons. Possible values: - \value undefined The buttons are resized to fill the available space. \value Qt.AlignLeft The buttons are aligned to the left. \value Qt.AlignHCenter The buttons are horizontally centered. \value Qt.AlignRight The buttons are aligned to the right. @@ -514,12 +513,16 @@ void QQuickDialogButtonBox::setPosition(Position position) \value Qt.AlignVCenter The buttons are vertically centered. \value Qt.AlignBottom The buttons are aligned to the bottom. - The default value is \c undefined. + By default, no specific alignment is set; reading the alignment property yields + a default flag value which compares equal to 0. The property can be reset to this + value by assigning \c{undefined} to it. In this case, the buttons are resized to + fill the available space. - \note This property assumes a horizontal layout of the buttons. The - DialogButtonBox for the \l {iOS Style}{iOS style} uses a vertical layout - when there are more than two buttons, and if set to a value other than - \c undefined, the layout of its buttons will be done horizontally. + \note This property assumes a horizontal layout of the buttons. + Note that when running the \l {iOS Style}{iOS style}, the DialogButtonBox will use + a vertical layout if this property is set to anything other than \c undefined and + there are more than two buttons. + In all other cases, the buttons will be arranged horizontally. */ Qt::Alignment QQuickDialogButtonBox::alignment() const { |
