Add volume control
This commit is contained in:
parent
5d5e3c6888
commit
4a83f971f3
14 changed files with 144 additions and 32 deletions
|
|
@ -9,11 +9,11 @@ Item {
|
|||
anchors.centerIn: parent
|
||||
spacing: container.spacing
|
||||
|
||||
RoundButton{
|
||||
RoundImageButton{
|
||||
id: previous
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
width: 60
|
||||
diameter: 60
|
||||
imageSource: "qrc:/icon_previous"
|
||||
|
||||
enabled: model.pHasPrevious
|
||||
|
|
@ -22,21 +22,21 @@ Item {
|
|||
model.playPrevious();
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
RoundImageButton{
|
||||
id: playPause
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: 80
|
||||
diameter: 80
|
||||
imageSource: model.pIsPlaying ? "qrc:/icon_pause" : "qrc:/icon_play"
|
||||
|
||||
onClicked:{
|
||||
model.playPause();
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
RoundImageButton{
|
||||
id: stop
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
width: 60
|
||||
diameter: 60
|
||||
imageSource: "qrc:/icon_stop"
|
||||
|
||||
enabled: model.pIsPlaying
|
||||
|
|
@ -45,11 +45,11 @@ Item {
|
|||
model.stopMusic();
|
||||
}
|
||||
}
|
||||
RoundButton{
|
||||
RoundImageButton{
|
||||
id: next
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
width: 60
|
||||
diameter: 60
|
||||
imageSource: "qrc:/icon_next"
|
||||
|
||||
enabled: model.pHasNext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue