aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-05 13:00:56 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-07 17:07:34 +0000
commit9d8a6e06fc06ed0adfed84385ab6357245a46a37 (patch)
treed654248a910b55b934cfebec6d5aefc3c9b56b0e /tests
parentc930f4adf8dd0829c4d3a00d48b70ca988721033 (diff)
Add Control::locale
Change-Id: I6c6647de6d286a92b35bca09a45e82cd3343a623 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controls/data/tst_control.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_control.qml b/tests/auto/controls/data/tst_control.qml
index 15b25112..34173026 100644
--- a/tests/auto/controls/data/tst_control.qml
+++ b/tests/auto/controls/data/tst_control.qml
@@ -656,4 +656,17 @@ TestCase {
control4.destroy()
}
+
+ function test_locale() {
+ var control = component.createObject(testCase)
+ verify(control)
+
+ control.locale = Qt.locale("en_US")
+ compare(control.locale.name, "en_US")
+
+ control.locale = Qt.locale("nb_NO")
+ compare(control.locale.name, "nb_NO")
+
+ control.destroy()
+ }
}