diff options
author | Rafael Brandao <rafael.lobo@openbossa.org> | 2012-07-19 10:27:35 -0300 |
---|---|---|
committer | Rafael Brandao <rafael.lobo@openbossa.org> | 2012-07-19 10:35:40 -0300 |
commit | 6c2bd2f03daa5989336f82def942bf2c8deb0857 (patch) | |
tree | 214192f461deb59fea8ffa6e0ba56cc3a227118d | |
parent | b9b2d30f988c92c941303b82afcc909852039937 (diff) | |
download | snowshoe-6c2bd2f03daa5989336f82def942bf2c8deb0857.tar.gz |
Use enabled property to disallow touch events on hidden items
In a recent Qt5 change, the behavior of opacity has been changed and
no longer affects click or touch events. In a first step, we will bind
enabled property to opacity. In the future we may want to take advantage
of invisible items and use "visible: false" instead.
Reviewed-by: Alexis Menard
-rw-r--r-- | src/mobile/qml/Main.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mobile/qml/Main.qml b/src/mobile/qml/Main.qml index 3afdffe..1e16916 100644 --- a/src/mobile/qml/Main.qml +++ b/src/mobile/qml/Main.qml @@ -31,6 +31,7 @@ Rectangle { PanelToggle { id: panelToggle + enabled: opacity > 0 anchors { top: parent.top topMargin: 32 @@ -50,6 +51,7 @@ Rectangle { TopSitesPanel { id: topSitesPanel + enabled: opacity > 0 opacity: 0 anchors { top: panelToggle.bottom @@ -65,6 +67,7 @@ Rectangle { TabsPanel { id: tabsPanel + enabled: opacity > 0 opacity: 0 anchors { top: panelToggle.bottom @@ -76,6 +79,7 @@ Rectangle { NavigationPanel { id: navigationPanel + enabled: opacity > 0 opacity: 0 anchors.fill: parent @@ -112,6 +116,7 @@ Rectangle { Image { id: plusButton + enabled: opacity > 0 opacity: 0 source: plusButtonMouseArea.pressed ? "qrc:///mobile/nav/btn_plus_pressed" : "qrc:///mobile/nav/btn_plus_unpressed" @@ -128,7 +133,7 @@ Rectangle { UrlInputPanel { id: urlInputPanel - + enabled: opacity > 0 property bool shouldOpenNewTab: false function showForNewTab() { |