mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Draw the NoIntentIcon over the intent description hover area.
This fixes a bug where the NoIntent tooltip was hidden by the intent description CURA-6936
This commit is contained in:
parent
71fe01d7f2
commit
315b93a152
1 changed files with 16 additions and 13 deletions
|
@ -124,18 +124,6 @@ Item
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
||||||
NoIntentIcon
|
|
||||||
{
|
|
||||||
affected_extruders: Cura.MachineManager.extruderPositionsWithNonActiveIntent
|
|
||||||
intent_type: model.name
|
|
||||||
anchors.right: intentCategoryLabel.right
|
|
||||||
anchors.rightMargin: UM.Theme.getSize("narrow_margin").width
|
|
||||||
width: intentCategoryLabel.height * 0.75
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
height: width
|
|
||||||
visible: Cura.MachineManager.activeIntentCategory == model.intent_category && affected_extruders.length
|
|
||||||
}
|
|
||||||
|
|
||||||
Cura.RadioCheckbar
|
Cura.RadioCheckbar
|
||||||
{
|
{
|
||||||
anchors
|
anchors
|
||||||
|
@ -164,8 +152,9 @@ Item
|
||||||
isCheckedFunction: checkedFunction
|
isCheckedFunction: checkedFunction
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea // tooltip hover area
|
MouseArea // Intent description tooltip hover area
|
||||||
{
|
{
|
||||||
|
id: intentDescriptionHoverArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
enabled: model.description !== undefined
|
enabled: model.description !== undefined
|
||||||
|
@ -181,6 +170,20 @@ Item
|
||||||
}
|
}
|
||||||
onExited: base.hideTooltip()
|
onExited: base.hideTooltip()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NoIntentIcon // This icon has hover priority over intentDescriptionHoverArea, so draw it above it.
|
||||||
|
{
|
||||||
|
affected_extruders: Cura.MachineManager.extruderPositionsWithNonActiveIntent
|
||||||
|
intent_type: model.name
|
||||||
|
anchors.right: intentCategoryLabel.right
|
||||||
|
anchors.rightMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
|
width: intentCategoryLabel.height * 0.75
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
height: width
|
||||||
|
visible: Cura.MachineManager.activeIntentCategory == model.intent_category && affected_extruders.length
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue