connected stop, previous and next button;
STILL MISSING: check whether there is a next/previous medium and only then show/enable buttons
This commit is contained in:
parent
d6c806d41d
commit
61b8734b62
4 changed files with 33 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ Item{
|
|||
// visible: model.pHasPrevious
|
||||
|
||||
onClicked:{
|
||||
//musicModel.playPrevious();
|
||||
musicModel.playPrevious();
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
|
|
@ -87,8 +87,8 @@ Item{
|
|||
imageSource: "qrc:/icon_stop"
|
||||
|
||||
onClicked:{
|
||||
//musicModel.stop();
|
||||
//playPause.imageSource = "qrc:/icon_play"
|
||||
musicModel.stopMusic();
|
||||
playPause.imageSource = "qrc:/icon_play"
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
|
|
@ -101,7 +101,7 @@ Item{
|
|||
// visible: model.pHasNext
|
||||
|
||||
onClicked:{
|
||||
//musicModel.playNext();
|
||||
musicModel.playNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue