diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-07-20 15:42:49 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-07-20 14:28:14 +0000 |
commit | 19b11510c78eac54491867304d22a17d1b12a395 (patch) | |
tree | 7d83da1fe55a9b7e79cf882873c6d78b79ca01a6 /tests/auto/controls/data/tst_tabbar.qml | |
parent | fc5351039e6175fa599bb79a891fb1e1f32f7949 (diff) |
Fix tst_tabbar::test_layout()
The implicit size of the background can be read-only (the Imagine style
has a background image), so reset the whole background instead of trying
to reset its implicit size.
Change-Id: I499f7ade13094064709a5a25153ad39ee14205d3
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_tabbar.qml')
-rw-r--r-- | tests/auto/controls/data/tst_tabbar.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/controls/data/tst_tabbar.qml b/tests/auto/controls/data/tst_tabbar.qml index 5c9905d5..adb27f78 100644 --- a/tests/auto/controls/data/tst_tabbar.qml +++ b/tests/auto/controls/data/tst_tabbar.qml @@ -506,10 +506,9 @@ TestCase { function test_layout(data) { var control = createTemporaryObject(tabBar, testCase, {spacing: data.spacing, width: 200}) - // remove the implicit size from the background so that it won't affect - // the implicit size of the tabbar, so the implicit sizes tested below - // are entirely based on the content size - control.background.implicitWidth = 0 + // remove the background so that it won't affect the implicit size of the tabbar, + // so the implicit sizes tested below are entirely based on the content size + control.background = null var tab1 = tabButton.createObject(control, {text: "First"}) control.addItem(tab1) |