diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-06-07 12:30:21 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-11 09:51:49 +0200 |
commit | 0e70cedb2248e54b132822d5be925825fed918d3 (patch) | |
tree | 9bc587aa0bb24d84cb0284051a3c45480d912c62 /tests | |
parent | b69bccacffa24194233e6c08cc0d2ee3626552e1 (diff) | |
download | qtquickcontrols-0e70cedb2248e54b132822d5be925825fed918d3.tar.gz |
CalendarStyle: do not hard code the height of dayOfWeekDelegate
Task-number: QTBUG-39482
Change-Id: I7b610a098402f5ec684fc0d7f9b47c4b9981e733
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_calendar.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_calendar.qml b/tests/auto/controls/data/tst_calendar.qml index f2002844..870b5552 100644 --- a/tests/auto/controls/data/tst_calendar.qml +++ b/tests/auto/controls/data/tst_calendar.qml @@ -52,7 +52,7 @@ Item { name: "Tests_Calendar" when: windowShown readonly property int navigationBarHeight: calendar !== undefined ? calendar.__panel.navigationBarItem.height : 0 - readonly property int dayOfWeekHeaderRowHeight: calendar !== undefined ? calendar.__panel.dayOfWeekHeaderRowHeight : 0 + readonly property int dayOfWeekHeaderRowHeight: calendar !== undefined ? calendar.__panel.dayOfWeekHeaderRow.height : 0 readonly property int firstDateCellX: 0 readonly property int firstDateCellY: navigationBarHeight + dayOfWeekHeaderRowHeight readonly property int previousMonthButtonX: navigationBarHeight / 2 @@ -83,6 +83,7 @@ Item { " Calendar { }", container, ""); calendar.width = 300; calendar.height = 300; + waitForRendering(calendar); } function cleanup() { |