From 1accb30408c8c202fee9a416d12fba3dfc06fe4e Mon Sep 17 00:00:00 2001 From: "j.delarago" Date: Mon, 2 May 2022 11:35:32 +0200 Subject: [PATCH 1/2] The PrintSetupTooltip was catching events while invisible on the top left of the screen. This was causing the menubar not to be clickable. I've disabled PrintSetupTooltip when not visible so that it does not catch events. CURA-9232 --- resources/qml/PrintSetupTooltip.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/qml/PrintSetupTooltip.qml b/resources/qml/PrintSetupTooltip.qml index 20b9ac8981..8551c5c221 100644 --- a/resources/qml/PrintSetupTooltip.qml +++ b/resources/qml/PrintSetupTooltip.qml @@ -17,6 +17,8 @@ UM.PointingRectangle arrowSize: UM.Theme.getSize("default_arrow").width opacity: 0 + // This should be disabled when invisible, otherwise it will catch mouse events. + enabled: false Behavior on opacity { @@ -52,11 +54,13 @@ UM.PointingRectangle } base.opacity = 1; target = Qt.point(position.x + 1, position.y + Math.round(UM.Theme.getSize("tooltip_arrow_margins").height / 2)) + enabled = true } function hide() { base.opacity = 0; + enabled = false } ScrollView From 6f7fbbecf7312348b8d87f809211ed0e28b769a2 Mon Sep 17 00:00:00 2001 From: "j.delarago" Date: Mon, 2 May 2022 13:17:36 +0200 Subject: [PATCH 2/2] Simplify enabled behaviour CURA-9232 --- resources/qml/PrintSetupTooltip.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/qml/PrintSetupTooltip.qml b/resources/qml/PrintSetupTooltip.qml index 8551c5c221..e4d322f9d4 100644 --- a/resources/qml/PrintSetupTooltip.qml +++ b/resources/qml/PrintSetupTooltip.qml @@ -18,7 +18,7 @@ UM.PointingRectangle opacity: 0 // This should be disabled when invisible, otherwise it will catch mouse events. - enabled: false + enabled: opacity > 0 Behavior on opacity { @@ -54,13 +54,11 @@ UM.PointingRectangle } base.opacity = 1; target = Qt.point(position.x + 1, position.y + Math.round(UM.Theme.getSize("tooltip_arrow_margins").height / 2)) - enabled = true } function hide() { base.opacity = 0; - enabled = false } ScrollView