@@ -99,11 +99,8 @@ Item {
99 searchInProgress: root.scope ? root.scope.searchInProgress : false
99 searchInProgress: root.scope ? root.scope.searchInProgress : false
102− Item {
102+ ScopesOverviewTab {
103 id: tabBarHolder
103 id: tabBarHolder
105− property int currentTab: 0
107 anchors {
104 anchors {
108 left: parent.left
105 left: parent.left
109 right: parent.right
106 right: parent.right
@@ -111,55 +108,6 @@ Item {
111 margins: units.gu(2)
108 margins: units.gu(2)
113 height: units.gu(4)
110 height: units.gu(4)
117− height: parent.height
118− width: parent.width / 2
120− anchors.fill: parent
121− color: tabBarHolder.currentTab == 0 ? "white" : "transparent"
122− radius: units.dp(10)
125− anchors.centerIn: parent
126− text: i18n.tr("Favourites")
127− color: tabBarHolder.currentTab == 0 ? "black" : "white"
129− onClicked: tabBarHolder.currentTab = 0
134− height: parent.height
135− width: parent.width / 2
137− anchors.fill: parent
138− color: tabBarHolder.currentTab == 1 ? "white" : "transparent"
139− radius: units.dp(10)
142− anchors.centerIn: parent
143− text: i18n.tr("All")
144− color: tabBarHolder.currentTab == 1 ? "black" : "white"
146− onClicked: tabBarHolder.currentTab = 1
151− height: parent.height
153− x: tabBarHolder.currentTab == 1 ? tab2.x : tab2.x - width
157− anchors.fill: parent
158− radius: units.dp(10)
159− color: "transparent"
160− border.color: centerPiece.color
161− border.width: units.dp(1)