added previous, next and stop button to ui. Not connected yet
This commit is contained in:
parent
e610774e49
commit
d6c806d41d
6 changed files with 57 additions and 10 deletions
|
|
@ -47,18 +47,62 @@ Item{
|
|||
color: "#99ffffff"
|
||||
height: 120
|
||||
|
||||
RoundButton{
|
||||
id: startPause
|
||||
// @todo: use rowLayout instead?
|
||||
Row{
|
||||
spacing: 20
|
||||
anchors.centerIn: parent
|
||||
width: 80
|
||||
imageSource: "qrc:/icon_play"
|
||||
|
||||
onClicked:{
|
||||
musicModel.playPause();
|
||||
if(imageSource == "qrc:/icon_play")
|
||||
imageSource = "qrc:/icon_pause"
|
||||
else
|
||||
imageSource = "qrc:/icon_play"
|
||||
RoundButton{
|
||||
id: previous
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
width: 60
|
||||
imageSource: "qrc:/icon_previous"
|
||||
|
||||
// visible: model.pHasPrevious
|
||||
|
||||
onClicked:{
|
||||
//musicModel.playPrevious();
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
id: playPause
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: 80
|
||||
imageSource: "qrc:/icon_play"
|
||||
|
||||
onClicked:{
|
||||
musicModel.playPause();
|
||||
if(imageSource == "qrc:/icon_play")
|
||||
imageSource = "qrc:/icon_pause"
|
||||
else
|
||||
imageSource = "qrc:/icon_play"
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
id: stop
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
width: 60
|
||||
imageSource: "qrc:/icon_stop"
|
||||
|
||||
onClicked:{
|
||||
//musicModel.stop();
|
||||
//playPause.imageSource = "qrc:/icon_play"
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
id: next
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
width: 60
|
||||
imageSource: "qrc:/icon_next"
|
||||
|
||||
// visible: model.pHasNext
|
||||
|
||||
onClicked:{
|
||||
//musicModel.playNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue