on xenial help sign in
Set the tabbarmodel index as we do on real code

It works better :D

commit46ab87fe568848662acb4a1f35475379e963c4ed authorAlbert Astals <albert.astals@canonical.com> dateTue 13 May 2014, 09:44 (12 years ago) parent4ab3b3b
1 file changed+1−1
tests/qmltests/Dash/tst_Dash.qml+1−1
tests/qmltests/Dash/tst_Dash.qml+1−1
@@ -127,7 +127,7 @@ Item {
127127 var dashContent = findChild(dash, "dashContent");
128128 var current_index = dashContent.currentIndex;
129129
130− tabbar.selectedIndex = data.visualIndex;
130+ tabbar.model.selectedIndex = data.visualIndex;
131131 compare(dashContent.currentIndex, data.shouldBeVisible ? data.visualIndex : current_index);
132132 }
133133 }