aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-07-28 03:00:11 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-07-28 03:00:11 +0200
commitf6e2de9d75ebd6c782fcb20e48375c9ac80d9d25 (patch)
treeb9aac9a025e226007e4314540237990a1a8d3730 /src/quicktemplates2
parentef68ed611d13325e9fc35a289f44d7940aae63fc (diff)
parent4e11d09fdef369af130c86a81df599ee3273ac7d (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Diffstat (limited to 'src/quicktemplates2')
-rw-r--r--src/quicktemplates2/qquickcontrol.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickcontrol.cpp b/src/quicktemplates2/qquickcontrol.cpp
index 38f3212a..26e28ebe 100644
--- a/src/quicktemplates2/qquickcontrol.cpp
+++ b/src/quicktemplates2/qquickcontrol.cpp
@@ -1072,6 +1072,26 @@ qreal QQuickControl::availableHeight() const
\li \l {Control::}{bottomPadding}
\endlist
+ \note Different styles may specify the default padding for certain controls
+ in different ways, and these ways may change over time as the design
+ guidelines that the style is based on evolve. To ensure that these changes
+ don't affect the padding values you have specified, it is best to use the
+ most specific properties available. For example, rather than setting
+ the \l padding property:
+
+ \code
+ padding: 0
+ \endcode
+
+ set each specific property instead:
+
+ \code
+ leftPadding: 0
+ rightPadding: 0
+ topPadding: 0
+ bottomPadding: 0
+ \endcode
+
\sa {Control Layout}, availableWidth, availableHeight, topPadding, leftPadding, rightPadding, bottomPadding
*/
qreal QQuickControl::padding() const