Doc: elaborate on default values for Layout.alignment

It wasn't clear which values would be used when only a horizontal or
vertical flag was set.

Change-Id: I99b4a13a87b35a74f1ab80c5fafa9df621bf7b10
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
(cherry picked from commit a484ea0d36)
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
Mitch Curtis 2018-02-14 09:51:39 +01:00
parent 06ec6340d0
commit 56d6d905c2
1 changed files with 5 additions and 1 deletions

View File

@ -411,7 +411,11 @@ void QQuickLayoutAttached::setColumn(int column)
This property allows you to specify the alignment of an item within the cell(s) it occupies. This property allows you to specify the alignment of an item within the cell(s) it occupies.
The default value is \c 0, which means it will be \c{Qt.AlignVCenter | Qt.AlignLeft} The default value is \c 0, which means it will be \c{Qt.AlignVCenter | Qt.AlignLeft}.
These defaults also apply if only a horizontal or vertical flag is specified:
if only a horizontal flag is specified, the default vertical flag will be
\c Qt.AlignVCenter, and if only a vertical flag is specified, the default
horizontal flag will be \c Qt.AlignLeft.
A valid alignment is a combination of the following flags: A valid alignment is a combination of the following flags:
\list \list