diff options
author | Alexandre Moreno <alexmorenocano@gmail.com> | 2015-10-31 11:09:27 +0800 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-11-01 11:21:35 +0200 |
commit | 2a7fb1110de08ce99bcc88451ed0f07b44f7e08c (patch) | |
tree | 25c6a66288b3515cf0e5dc32d15fb678c1fad570 | |
parent | 15e5da4d25d0b1964c98e2ce6a7cbc0418791ad7 (diff) |
qt: do not hide playbar if it contains cursor
-rw-r--r-- | qt/main.qml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/qt/main.qml b/qt/main.qml index 9b4d59d..8e56328 100644 --- a/qt/main.qml +++ b/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 |