From a8f242d48c9771fb86e5909f18b1de51ade45e28 Mon Sep 17 00:00:00 2001 From: Alexandre Moreno Date: Sat, 31 Oct 2015 11:09:27 +0800 Subject: [PATCH] playback/player: qt: do not hide playbar if it contains cursor --- playback/player/qt/main.qml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/playback/player/qt/main.qml b/playback/player/qt/main.qml index 9b4d59ddbf..8e56328df3 100644 --- a/playback/player/qt/main.qml +++ b/playback/player/qt/main.qml @@ -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