diff options
author | Andy Shaw <andy.shaw@qt.io> | 2019-02-19 15:51:03 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2019-02-20 09:36:23 +0000 |
commit | b7f5cb186df211c1bfcdbaee06fb7ce9146e9a0e (patch) | |
tree | 4fdbdf582a4e4d8ce84392ed928a44ae3912c239 /tests | |
parent | 65d61277be164a0781f9b57873afc000f36073fa (diff) | |
download | qtquickcontrols-b7f5cb186df211c1bfcdbaee06fb7ce9146e9a0e.tar.gz |
Update the CalendarHeaderModel when changing the locale set
Change-Id: I8af18ebfcc77f6080cfd5f0cade5042d0cd4a9a4
Fixes: QTBUG-73765
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_calendar.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_calendar.qml b/tests/auto/controls/data/tst_calendar.qml index 1f8d9a8d..08bd756d 100644 --- a/tests/auto/controls/data/tst_calendar.qml +++ b/tests/auto/controls/data/tst_calendar.qml @@ -985,5 +985,13 @@ Item { compare(testcase.aysncDelegatesDestructed[i], true); } } + + function test_firstDayOfWeekAfterLocaleChange() { + calendar.selectedDate = new Date(2013, 0, 1); + calendar.locale = Qt.locale("en"); + compare(calendar.__panel.dayOfWeekHeaderRow.__repeater.model.get(0).dayOfWeek, 0) + calendar.locale = Qt.locale("fr"); + compare(calendar.__panel.dayOfWeekHeaderRow.__repeater.model.get(0).dayOfWeek, 1) + } } } |