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"
|
color: "#99ffffff"
|
||||||
height: 120
|
height: 120
|
||||||
|
|
||||||
RoundButton{
|
// @todo: use rowLayout instead?
|
||||||
id: startPause
|
Row{
|
||||||
|
spacing: 20
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: 80
|
|
||||||
imageSource: "qrc:/icon_play"
|
|
||||||
|
|
||||||
onClicked:{
|
RoundButton{
|
||||||
musicModel.playPause();
|
id: previous
|
||||||
if(imageSource == "qrc:/icon_play")
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
imageSource = "qrc:/icon_pause"
|
|
||||||
else
|
width: 60
|
||||||
imageSource = "qrc:/icon_play"
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,8 @@
|
||||||
<file alias="background">resources/sky.jpg</file>
|
<file alias="background">resources/sky.jpg</file>
|
||||||
<file alias="icon_pause">resources/pause.jpg</file>
|
<file alias="icon_pause">resources/pause.jpg</file>
|
||||||
<file alias="icon_play">resources/play.jpg</file>
|
<file alias="icon_play">resources/play.jpg</file>
|
||||||
|
<file alias="icon_next">resources/next.jpg</file>
|
||||||
|
<file alias="icon_previous">resources/previous.jpg</file>
|
||||||
|
<file alias="icon_stop">resources/stop.jpg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
||||||
BIN
LenaPi/resources/next.jpg
Normal file
BIN
LenaPi/resources/next.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
BIN
LenaPi/resources/previous.jpg
Normal file
BIN
LenaPi/resources/previous.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
BIN
LenaPi/resources/stop.jpg
Normal file
BIN
LenaPi/resources/stop.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
pics/controlicons.png
Normal file
BIN
pics/controlicons.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Loading…
Add table
Add a link
Reference in a new issue