playback/player: qt: hide playbar properly

Fixes #120
This commit is contained in:
Alexandre Moreno 2015-10-25 01:18:01 +08:00 committed by Sebastian Dröge
parent d623c45b76
commit dbc1f82678

View file

@ -64,6 +64,25 @@ ApplicationWindow {
height: parent.height
}
MouseArea {
anchors.fill: parent
hoverEnabled: true
onPositionChanged: {
playbar.opacity = 1.0
hidetimer.start()
}
}
Timer {
id: hidetimer
interval: 5000
onTriggered: {
playbar.opacity = 0.0
settings.visible = false
stop()
}
}
FileDialog {
id: fileDialog
//nameFilters: [TODO globs from mime types]
@ -94,26 +113,6 @@ ApplicationWindow {
height: 40//childrenRect.height + 20
radius: 5
MouseArea {
id: mousearea
anchors.fill: parent
hoverEnabled: true
onEntered: {
parent.opacity = 1.0
hidetimer.start()
}
}
Timer {
id: hidetimer
interval: 10000
onTriggered: {
parent.opacity = 0.0
settings.visible = false
stop()
}
}
Rectangle {
id: settings
width: 150; height: settingsView.contentHeight