1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-03 02:42:52 +02:00

added a common DeclarativeView class that sets commonly used stuff

This commit is contained in:
Michael Zanetti
2012-12-02 17:15:30 +01:00
parent 1938fdc727
commit feede63a13
12 changed files with 162 additions and 64 deletions

View File

@@ -14,7 +14,7 @@ Item {
anchors.centerIn: parent
height: backButton.height
width: height
visible: rootView.loading
visible: mainView.loading
RotationAnimation { target: busyIndicator; from: 360; to: 0; duration: 1500; running: visible; loops: Animation.Infinite }
}
@@ -29,11 +29,11 @@ Item {
currentIndex: currentlyPlayedIndex
onItemPlayPauseClicked: {
rootView.playItem(index)
mainView.playItem(index)
}
onItemClicked: {
rootView.playItem(index)
mainView.playItem(index)
}
}
@@ -51,7 +51,7 @@ Item {
font.pointSize: 18
width: parent.width
elide: Text.ElideRight
text: rootView.title
text: mainView.title
}
Text {
color: "white"