added component for player control pannel
This commit is contained in:
parent
78aec2acf8
commit
892d033931
3 changed files with 45 additions and 34 deletions
|
|
@ -6,6 +6,16 @@ Item{
|
||||||
|
|
||||||
property int margins: 20
|
property int margins: 20
|
||||||
|
|
||||||
|
RoundButton{
|
||||||
|
id: backNavigation
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.margins: container.margins
|
||||||
|
onClicked: {
|
||||||
|
musicModel.navigateBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle{
|
Rectangle{
|
||||||
id: coverBorder
|
id: coverBorder
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
@ -28,44 +38,13 @@ Item{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RoundButton{
|
PlayerControlPannel {
|
||||||
id: backNavigation
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.margins: container.margins
|
|
||||||
onClicked: {
|
|
||||||
musicModel.navigateBack();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
id: controlPannel
|
id: controlPannel
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
color: "#99ffffff"
|
|
||||||
height: 140
|
|
||||||
|
|
||||||
MediaProgress{
|
model: musicModel
|
||||||
id: progress
|
margins: container.margins
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.margins: container.margins
|
|
||||||
|
|
||||||
model: musicModel
|
|
||||||
}
|
|
||||||
|
|
||||||
PlayerButtons{
|
|
||||||
id: buttons
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.top: progress.bottom
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
|
|
||||||
model: musicModel
|
|
||||||
spacing: 20
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
31
LenaPi/PlayerControlPannel.qml
Normal file
31
LenaPi/PlayerControlPannel.qml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
import QtQuick 2.0
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: container
|
||||||
|
property var model
|
||||||
|
property int margins
|
||||||
|
|
||||||
|
color: "#99ffffff"
|
||||||
|
height: 140
|
||||||
|
|
||||||
|
MediaProgress{
|
||||||
|
id: progress
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.margins: container.margins
|
||||||
|
|
||||||
|
model: container.model
|
||||||
|
}
|
||||||
|
|
||||||
|
PlayerButtons{
|
||||||
|
id: buttons
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: progress.bottom
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
|
model: container.model
|
||||||
|
spacing: 20
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -9,5 +9,6 @@
|
||||||
<file>MusicPlayer.qml</file>
|
<file>MusicPlayer.qml</file>
|
||||||
<file>MediaProgress.qml</file>
|
<file>MediaProgress.qml</file>
|
||||||
<file>PlayerButtons.qml</file>
|
<file>PlayerButtons.qml</file>
|
||||||
|
<file>PlayerControlPannel.qml</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue