mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-02 23:31:42 -07:00
Simplify enabled behaviour
CURA-9232
This commit is contained in:
parent
1accb30408
commit
6f7fbbecf7
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue