mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:35:58 +08:00
Simplify enabled behaviour
CURA-9232
This commit is contained in:
parent
1accb30408
commit
6f7fbbecf7
@ -18,7 +18,7 @@ UM.PointingRectangle
|
|||||||
|
|
||||||
opacity: 0
|
opacity: 0
|
||||||
// This should be disabled when invisible, otherwise it will catch mouse events.
|
// This should be disabled when invisible, otherwise it will catch mouse events.
|
||||||
enabled: false
|
enabled: opacity > 0
|
||||||
|
|
||||||
Behavior on opacity
|
Behavior on opacity
|
||||||
{
|
{
|
||||||
@ -54,13 +54,11 @@ UM.PointingRectangle
|
|||||||
}
|
}
|
||||||
base.opacity = 1;
|
base.opacity = 1;
|
||||||
target = Qt.point(position.x + 1, position.y + Math.round(UM.Theme.getSize("tooltip_arrow_margins").height / 2))
|
target = Qt.point(position.x + 1, position.y + Math.round(UM.Theme.getSize("tooltip_arrow_margins").height / 2))
|
||||||
enabled = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hide()
|
function hide()
|
||||||
{
|
{
|
||||||
base.opacity = 0;
|
base.opacity = 0;
|
||||||
enabled = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
|
Loading…
x
Reference in New Issue
Block a user