Rafael Brandao
unread,Jul 19, 2012, 9:31:19 AM7/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to snowsh...@googlegroups.com
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: NOBODY
---
src/mobile/qml/Main.qml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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() {
--
1.7.9.5