diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-05 13:00:56 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-07 17:07:34 +0000 |
commit | 9d8a6e06fc06ed0adfed84385ab6357245a46a37 (patch) | |
tree | d654248a910b55b934cfebec6d5aefc3c9b56b0e /tests/auto/controls | |
parent | c930f4adf8dd0829c4d3a00d48b70ca988721033 (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/auto/controls')
-rw-r--r-- | tests/auto/controls/data/tst_control.qml | 13 |
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() + } } |