1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-01 01:51:58 +02:00

Revert "started integrating the breadcrumb"

This reverts commit ac576046c9.
This commit is contained in:
Michael Zanetti
2012-12-15 18:52:36 +01:00
parent 1bd6ebef9c
commit 21c494ba91
3 changed files with 20 additions and 172 deletions

View File

@@ -15,27 +15,6 @@ Rectangle {
ListElement { label: "By Year"; image: "image://albumart/foobar"; creatorContent: "year" }
}
Connections {
target: stationView
onPagePicked: {
switch(createBy) {
case StationWidget.CreateByArtist:
stationCreator.content = "stations/CreateByArtist.qml";
break;
case StationWidget.CreateByGenre:
stationCreator.content = "stations/CreateByGenre.qml";
break;
case StationWidget.CreateByYear:
stationCreator.content = "stations/CreateByYear.qml";
break;
}
print("########", createBy, stationCreator.content)
stationListView.currentIndex = page;
}
}
VisualItemModel {
id: stationVisualModel
@@ -86,34 +65,34 @@ Rectangle {
}
}
Image {
RoundedButton {
id: backButton
text: "<"
height: defaultFontHeight * 4
width: height
opacity: stationListView.currentIndex == 0 ? 0 : 1
source: "../images/back-rest.svg"
smooth: true
hidden: stationListView.currentIndex == 0
anchors {
left: parent.left
bottom: parent.bottom
margins: defaultFontHeight * 2
}
MouseArea {
anchors.fill: parent
onClicked: stationListView.decrementCurrentIndex()
}
onClicked: stationListView.decrementCurrentIndex()
}
Image {
RoundedButton {
id: nextButton
text: stationListView.currentIndex == 2 ? "+" : ">"
height: defaultFontHeight * 4
opacity: stationListView.currentIndex != 2 ? 0 : 1
source: stationListView.currentIndex == 2 ? "../images/list-add.svg" : "../images/skip-rest.svg"
smooth: true
//hidden: stationListView.currentIndex == 0 || !rootView.configured // This should work once rootView.configured works
hidden: stationListView.currentIndex != 2
anchors {
right: parent.right
bottom: parent.bottom
margins: defaultFontHeight * 2
}
onClicked: stationListView.incrementCurrentIndex()
}
}