mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 15:45:56 +08:00
Re-add tooltips for intent profile selection in recommended.
They where skipped over when transferring the radio bar to the current large button based setup. CURA-9746
This commit is contained in:
parent
74f864e285
commit
8db3f02a4f
@ -32,7 +32,7 @@ Item
|
|||||||
{
|
{
|
||||||
profileName: model.name
|
profileName: model.name
|
||||||
icon: model.icon
|
icon: model.icon
|
||||||
|
tooltipText: (model.description != undefined) ? model.description : ""
|
||||||
|
|
||||||
selected: Cura.MachineManager.activeIntentCategory == model.intent_category
|
selected: Cura.MachineManager.activeIntentCategory == model.intent_category
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ Rectangle
|
|||||||
property bool selected: false
|
property bool selected: false
|
||||||
property string profileName: ""
|
property string profileName: ""
|
||||||
property string icon: ""
|
property string icon: ""
|
||||||
|
property alias tooltipText: tooltip.text
|
||||||
|
|
||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
||||||
@ -30,6 +31,13 @@ Rectangle
|
|||||||
onClicked: base.clicked()
|
onClicked: base.clicked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UM.ToolTip
|
||||||
|
{
|
||||||
|
id: tooltip
|
||||||
|
visible: mouseArea.containsMouse
|
||||||
|
targetPoint: Qt.point(base.x + (base.width / 2), base.y + (base.height / 2))
|
||||||
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: intentIcon.width
|
width: intentIcon.width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user