diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-22 14:16:51 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-22 13:19:47 +0000 |
commit | 51458ba5400c1dcaef1bd2101cbf60a8ddc2a0fa (patch) | |
tree | 6b752b010641a3474f85871abd11700b63e71a5d /tests | |
parent | f765bca3f7d34db01d1fc453d4ebce66c278fe2a (diff) |
Flat style: fix inheritance for re-parented items
Change-Id: I33e77f93477b20a4f7af4f10fa8dde95fad1863a
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/theme/data/tst_theme.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/theme/data/tst_theme.qml b/tests/auto/theme/data/tst_theme.qml index 4f94f2f5..03c19fc6 100644 --- a/tests/auto/theme/data/tst_theme.qml +++ b/tests/auto/theme/data/tst_theme.qml @@ -101,6 +101,14 @@ TestCase { } } + Component { + id: swipeView + SwipeView { + Theme.accentColor: "#111111" + Button { } + } + } + function test_defaults() { var control = button.createObject(testCase) verify(control) @@ -274,4 +282,14 @@ TestCase { compare(control.item.Theme.accentColor, "#333333") control.destroy() } + + function test_swipeView() { + var control = swipeView.createObject(testCase) + verify(control) + var child = control.itemAt(0) + verify(child) + compare(control.Theme.accentColor, "#111111") + compare(child.Theme.accentColor, "#111111") + control.destroy() + } } |