path: root/src
diff options
authorJ-P Nurmi <jpnurmi@qt.io>2017-03-21 16:15:33 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-03-22 09:14:47 +0000
commitbfd848cfb15a219e36bfc3f8d7c6b1e73bf61a7d (patch)
tree106592ee8f87b8ef9aad1680de899f00b2876271 /src
parentf19e2d5fa656815fe27d41d191a6f5dc95ed1047 (diff)
Doc: add missing docs for ApplicationWindow::locale
Change-Id: I799eb73a05842b1990b5615fd01ad5204c554f20 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
1 files changed, 14 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickapplicationwindow.cpp b/src/quicktemplates2/qquickapplicationwindow.cpp
index dcf1b5f0..a92900a5 100644
--- a/src/quicktemplates2/qquickapplicationwindow.cpp
+++ b/src/quicktemplates2/qquickapplicationwindow.cpp
@@ -637,6 +637,20 @@ void QQuickApplicationWindowPrivate::updateFont(const QFont &f)
emit q->fontChanged();
+ \qmlproperty Locale QtQuick.Controls::ApplicationWindow::locale
+ This property holds the locale of the window.
+ The default locale depends on the system environment. You can set the
+ default locale by calling QLocale::setDefault(), before loading any QML.
+ ApplicationWindow propagates the locale to child controls. If you change
+ the window's locale, that locale propagates to all child controls in the
+ window, overriding the system default locale.
+ \sa Control::locale, {LayoutMirroring}{LayoutMirroring}
QLocale QQuickApplicationWindow::locale() const
Q_D(const QQuickApplicationWindow);