aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-02-14 09:51:39 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-02-19 16:18:23 +0000
commit56d6d905c23607a610b8af142016108063a48e3a (patch)
treed33762ae9e1cde3231fb2196901206425e527911 /src
parent06ec6340d0eff763e52135afabc13662b3892c43 (diff)
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 a484ea0d3666b57bb49e9284ff86af3ba87ce58b) Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/imports/layouts/qquicklayout.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/imports/layouts/qquicklayout.cpp b/src/imports/layouts/qquicklayout.cpp
index d90eae5f80..450cf26cea 100644
--- a/src/imports/layouts/qquicklayout.cpp
+++ b/src/imports/layouts/qquicklayout.cpp
@@ -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.
- 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:
\list