aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickcontrol.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-12-21 12:26:02 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-21 16:48:02 +0000
commitac61952c992ee4cffd6f20b5f3739e44cb6c3de1 (patch)
tree0ad6a4ae2581ee9cb7dc670f31b5e601b820e91f /src/templates/qquickcontrol.cpp
parent8099ecb2a73832b930d217e7a957f190d49e6eb1 (diff)
QQuickApplicationWindow: add locale property
Change-Id: I1292d1fb856710e38add8d77ae6e3dac28137cd9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickcontrol.cpp')
-rw-r--r--src/templates/qquickcontrol.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/templates/qquickcontrol.cpp b/src/templates/qquickcontrol.cpp
index 97a85d4b..d1abafe2 100644
--- a/src/templates/qquickcontrol.cpp
+++ b/src/templates/qquickcontrol.cpp
@@ -659,6 +659,9 @@ QLocale QQuickControlPrivate::calcLocale() const
p = p->parentItem();
}
+ if (QQuickApplicationWindow *w = qobject_cast<QQuickApplicationWindow *>(q->window()))
+ return w->locale();
+
return QLocale();
}