@@ -163,51 +163,24 @@ Item {
163 objectName: "tabbar"
163 objectName: "tabbar"
164 height: units.gu(7)
164 height: units.gu(7)
165 width: parent.width
165 width: parent.width
166− implicitWidth: currentButtonWidth
166+ implicitWidth: 400
168− property alias selectedTabIndex: tabs.selectedTabIndex
168+ model: dashContentList.model
170− Component.onCompleted: {
170+ onSelectedIndexChanged: {
171− __styleInstance.headerTextStyle = Text.Raised
171+ dashContentList.currentIndex = selectedIndex;
172− __styleInstance.headerTextStyleColor = "black"
175− tabsItem: TabsBase {
174+ Connections {
179− model: dashContentList.model
175+ target: dashContentList
180− Tab {
176+ onCurrentIndexChanged: {
183− Component.onCompleted: {
184− var aux = tabs.tabList;
187− tabs.modelChanged();
188− if (tabs.selectedTabIndex == -1) {
189− tabs.selectedTabIndex = 0;
192− Component.onDestruction: {
193− var aux = tabs.tabList;
194− aux.splice(aux.indexOf(tab), 1)
196− tabs.modelChanged();
201− onSelectedTabIndexChanged: {
202− dashContentList.currentIndex = selectedTabIndex;
177+ tabbar.selectedIndex = dashContentList.currentIndex
205− Connections {
181+ Component.onCompleted: {
206− target: dashContentList
182+ __styleInstance.headerTextStyle = Text.Raised
207− onCurrentIndexChanged: {
183+ __styleInstance.headerTextStyleColor = "black"
208− tabs.selectedTabIndex = dashContentList.currentIndex