@@ -99,11 +99,8 @@ Item {
9999 searchInProgress: root.scope ? root.scope.searchInProgress : false
100100 }
101101
102− Item {
102+ ScopesOverviewTab {
103103 id: tabBarHolder
104−
105− property int currentTab: 0
106−
107104 anchors {
108105 left: parent.left
109106 right: parent.right
@@ -111,55 +108,6 @@ Item {
111108 margins: units.gu(2)
112109 }
113110 height: units.gu(4)
114−
115− AbstractButton {
116− id: tab1
117− height: parent.height
118− width: parent.width / 2
119− Rectangle {
120− anchors.fill: parent
121− color: tabBarHolder.currentTab == 0 ? "white" : "transparent"
122− radius: units.dp(10)
123− }
124− Label {
125− anchors.centerIn: parent
126− text: i18n.tr("Favourites")
127− color: tabBarHolder.currentTab == 0 ? "black" : "white"
128− }
129− onClicked: tabBarHolder.currentTab = 0
130− }
131− AbstractButton {
132− id: tab2
133− x: width
134− height: parent.height
135− width: parent.width / 2
136− Rectangle {
137− anchors.fill: parent
138− color: tabBarHolder.currentTab == 1 ? "white" : "transparent"
139− radius: units.dp(10)
140− }
141− Label {
142− anchors.centerIn: parent
143− text: i18n.tr("All")
144− color: tabBarHolder.currentTab == 1 ? "black" : "white"
145− }
146− onClicked: tabBarHolder.currentTab = 1
147− }
148− Rectangle {
149− id: centerPiece
150− width: units.dp(10)
151− height: parent.height
152− color: "white"
153− x: tabBarHolder.currentTab == 1 ? tab2.x : tab2.x - width
154− }
155− Rectangle {
156− id: border
157− anchors.fill: parent
158− radius: units.dp(10)
159− color: "transparent"
160− border.color: centerPiece.color
161− border.width: units.dp(1)
162− }
163111 }
164112 }
165113