mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +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
|
id: hidetimer
|
||||||
interval: 5000
|
interval: 5000
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
if (!playbarMouseArea.containsMouse) {
|
||||||
playbar.opacity = 0.0
|
playbar.opacity = 0.0
|
||||||
settings.visible = false
|
settings.visible = false
|
||||||
|
}
|
||||||
stop()
|
stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,6 +103,8 @@ ApplicationWindow {
|
||||||
source: "fonts/fontawesome-webfont.ttf"
|
source: "fonts/fontawesome-webfont.ttf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id : playbar
|
id : playbar
|
||||||
color: Qt.rgba(1, 1, 1, 0.7)
|
color: Qt.rgba(1, 1, 1, 0.7)
|
||||||
|
@ -112,6 +116,13 @@ ApplicationWindow {
|
||||||
width : grid.width + 20
|
width : grid.width + 20
|
||||||
height: 40//childrenRect.height + 20
|
height: 40//childrenRect.height + 20
|
||||||
radius: 5
|
radius: 5
|
||||||
|
focus: true
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
id: playbarMouseArea
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: settings
|
id: settings
|
||||||
|
|
Loading…
Reference in a new issue