Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj.delarago <joeydelarago@gmail.com>2022-05-02 14:17:36 +0300
committerj.delarago <joeydelarago@gmail.com>2022-05-02 14:17:36 +0300
commit6f7fbbecf7312348b8d87f809211ed0e28b769a2 (patch)
treebce3cb2413b5bac84adfe7f75acbbecf9b646617 /resources/qml
parent1accb30408c8c202fee9a416d12fba3dfc06fe4e (diff)
Simplify enabled behaviour
CURA-9232
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/PrintSetupTooltip.qml4
1 files changed, 1 insertions, 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