From 56d6d905c23607a610b8af142016108063a48e3a Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 14 Feb 2018 09:51:39 +0100 Subject: 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 Reviewed-by: Venugopal Shivashankar (cherry picked from commit a484ea0d3666b57bb49e9284ff86af3ba87ce58b) Reviewed-by: Andy Shaw --- src/imports/layouts/qquicklayout.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/imports/layouts/qquicklayout.cpp') 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 -- cgit v1.2.3