on xenial help sign in
Set the tabbarmodel index as we do on real code
96b920eAlbert Astals
tests/qmltests/Dash/tst_Dash.qml+1−1
@@ -127,7 +127,7 @@ Item {
127 var dashContent = findChild(dash, "dashContent");
127 var dashContent = findChild(dash, "dashContent");
128 var current_index = dashContent.currentIndex;
128 var current_index = dashContent.currentIndex;
129
129
130− tabbar.selectedIndex = data.visualIndex;
130+ tabbar.model.selectedIndex = data.visualIndex;
131 compare(dashContent.currentIndex, data.shouldBeVisible ? data.visualIndex : current_index);
131 compare(dashContent.currentIndex, data.shouldBeVisible ? data.visualIndex : current_index);
132 }
132 }
133 }
133 }