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,9 +47,27 @@ Item{
|
|||
color: "#99ffffff"
|
||||
height: 120
|
||||
|
||||
RoundButton{
|
||||
id: startPause
|
||||
// @todo: use rowLayout instead?
|
||||
Row{
|
||||
spacing: 20
|
||||
anchors.centerIn: parent
|
||||
|
||||
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"
|
||||
|
||||
|
|
@ -61,5 +79,31 @@ Item{
|
|||
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="icon_pause">resources/pause.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>
|
||||
</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