mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Merge pull request #13546 from Ultimaker/CURA-9746_recommened_intent_tooltips
[CURA-9746] Re-add tooltips for intent profile selection in recommended.
This commit is contained in:
commit
c625d35f33
2 changed files with 10 additions and 1 deletions
|
@ -32,7 +32,7 @@ Item
|
|||
{
|
||||
profileName: model.name
|
||||
icon: model.icon
|
||||
|
||||
tooltipText: model.description ? model.description : ""
|
||||
|
||||
selected: Cura.MachineManager.activeIntentCategory == model.intent_category
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ Rectangle
|
|||
property bool selected: false
|
||||
property string profileName: ""
|
||||
property string icon: ""
|
||||
property alias tooltipText: tooltip.text
|
||||
|
||||
signal clicked()
|
||||
|
||||
|
@ -30,6 +31,14 @@ Rectangle
|
|||
onClicked: base.clicked()
|
||||
}
|
||||
|
||||
UM.ToolTip
|
||||
{
|
||||
id: tooltip
|
||||
visible: mouseArea.containsMouse
|
||||
targetPoint: Qt.point(base.x + (base.width / 2), base.y + (base.height / 2))
|
||||
width: UM.Theme.getSize("tooltip").width
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
width: intentIcon.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue