mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-11 11:51:34 +00:00
playback/player: qt: do not hide playbar if it contains cursor
This commit is contained in:
parent
afd72fe79e
commit
a8f242d48c
1 changed files with 13 additions and 2 deletions
|
@ -77,8 +77,10 @@ ApplicationWindow {
|
|||
id: hidetimer
|
||||
interval: 5000
|
||||
onTriggered: {
|
||||
playbar.opacity = 0.0
|
||||
settings.visible = false
|
||||
if (!playbarMouseArea.containsMouse) {
|
||||
playbar.opacity = 0.0
|
||||
settings.visible = false
|
||||
}
|
||||
stop()
|
||||
}
|
||||
}
|
||||
|
@ -101,6 +103,8 @@ ApplicationWindow {
|
|||
source: "fonts/fontawesome-webfont.ttf"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Rectangle {
|
||||
id : playbar
|
||||
color: Qt.rgba(1, 1, 1, 0.7)
|
||||
|
@ -112,6 +116,13 @@ ApplicationWindow {
|
|||
width : grid.width + 20
|
||||
height: 40//childrenRect.height + 20
|
||||
radius: 5
|
||||
focus: true
|
||||
|
||||
MouseArea {
|
||||
id: playbarMouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: settings
|
||||
|
|
Loading…
Reference in a new issue