aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-03-21 16:17:50 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-03-22 09:14:51 +0000
commitd44d75180a40d32c175fff4f12154289ad0fc5be (patch)
tree7e9a992cc075443c9f4ce0eb996ec2a1114e82db
parentbfd848cfb15a219e36bfc3f8d7c6b1e73bf61a7d (diff)
Doc: fix Control::locale
The documentation body was clearly copied from Control::font. Locale doesn't have mutable properties. Instead, one has to create a locale using Qt.locale(). Change the wording to match that. Change-Id: I637b00808c29c16ee768820be327e3c780cfee64 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/quicktemplates2/qquickcontrol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quicktemplates2/qquickcontrol.cpp b/src/quicktemplates2/qquickcontrol.cpp
index be050c76..b673a424 100644
--- a/src/quicktemplates2/qquickcontrol.cpp
+++ b/src/quicktemplates2/qquickcontrol.cpp
@@ -807,14 +807,14 @@ void QQuickControl::resetSpacing()
\qmlproperty Locale QtQuick.Controls::Control::locale
This property holds the locale of the control.
+
It contains locale specific properties for formatting data and numbers.
Unless a special locale has been set, this is either the parent's locale
or the default locale.
- Control propagates explicit locale properties from parent to children.
- If you change a specific property on a control's locale, that property
- propagates to all of the control's children, overriding any system defaults
- for that property.
+ Control propagates the locale from parent to children. If you change the
+ control's locale, that locale propagates to all of the control's children,
+ overriding the system default locale.
\sa mirrored, {LayoutMirroring}{LayoutMirroring}
*/