Skip to content
Snippets Groups Projects
Commit 230a2354 authored by kempe's avatar kempe
Browse files

Fixed behaviors of DockedAudioPlayer


This closes #4

Signed-off-by: default avatarkempe <l.f.kempe@gmail.com>
parent 162a39c9
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ DockedAudioPlayerForm {
width: parent.width
dock: Dock.Bottom
Behavior on opacity { FadeAnimation {duration: 300}}
Behavior on y { }
// Property assignment
......
......@@ -23,9 +23,11 @@ DockedPanel {
property var stationData
opacity: Qt.inputMethod.visible || !open ? 0.0 : 1.0
height: Theme.itemSizeExtraLarge + Theme.paddingLarge
contentHeight: height
flickableDirection: Flickable.VerticalFlick
SleepTimer {
id: sleepTimer
}
......@@ -37,31 +39,6 @@ DockedPanel {
Item {
anchors.fill: parent
PushUpMenu {
id: playerManu
MenuLabel {
text: qsTr("Sleep timer")
}
MenuLabelSmal {
id: sleepTimerLabel
visible: sleepTimer.running
text: sleepTimer.clockText
}
MenuItem{
id: cancelSleepTimer
visible: sleepTimer.running
text: qsTr("Cancel")
}
MenuItem {
id: setSleepTimer
visible: !sleepTimer.running
text: qsTr("Set")
}
}
MouseArea {
id: opener
anchors.fill: parent
......@@ -121,4 +98,31 @@ DockedPanel {
}
}
}
PushUpMenu {
id: playerMenu
width: parent.width
MenuLabel {
text: qsTr("Sleep timer")
}
MenuLabelSmal {
id: sleepTimerLabel
visible: sleepTimer.running
text: sleepTimer.clockText
}
MenuItem{
id: cancelSleepTimer
visible: sleepTimer.running
text: qsTr("Cancel")
}
MenuItem {
id: setSleepTimer
visible: !sleepTimer.running
text: qsTr("Set")
}
}
}
......@@ -22,6 +22,7 @@ ApplicationWindow
RecivedUpgrader {
}
FavoritesPage {
id: favorites
}
......
......@@ -58,7 +58,7 @@
</message>
<message>
<source>Cancel</source>
<translation type="unfinished">Avbryt</translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Set</source>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment