From 51458ba5400c1dcaef1bd2101cbf60a8ddc2a0fa Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 22 Oct 2015 14:16:51 +0200 Subject: Flat style: fix inheritance for re-parented items Change-Id: I33e77f93477b20a4f7af4f10fa8dde95fad1863a Reviewed-by: Mitch Curtis --- tests/auto/theme/data/tst_theme.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests') 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() + } } -- cgit v1.2.3