From bfd848cfb15a219e36bfc3f8d7c6b1e73bf61a7d Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 21 Mar 2017 16:15:33 +0100 Subject: Doc: add missing docs for ApplicationWindow::locale Change-Id: I799eb73a05842b1990b5615fd01ad5204c554f20 Reviewed-by: Mitch Curtis --- src/quicktemplates2/qquickapplicationwindow.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); -- cgit v1.2.3