mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Display the correct tooltips for reset and inherits buttons
This commit is contained in:
parent
d4b5cd519b
commit
d1d2dc04c5
1 changed files with 4 additions and 2 deletions
|
@ -107,7 +107,7 @@ Item {
|
|||
controlContainer.notifyReset();
|
||||
}
|
||||
|
||||
onEntered: base.showResetTooltip({ x: mouse.mouseX, y: mouse.mouseY })
|
||||
onEntered: base.showTooltip(catalog.i18nc("@label", "This setting has a value that is different from the profile.\n\nClick to restore the value of the profile."))
|
||||
onExited:
|
||||
{
|
||||
if(controlContainer.item && controlContainer.item.hovered)
|
||||
|
@ -141,7 +141,7 @@ Item {
|
|||
|
||||
iconSource: UM.Theme.getIcon("notice");
|
||||
|
||||
onEntered: base.showInheritanceTooltip({ x: mouse.mouseX, y: mouse.mouseY })
|
||||
onEntered: base.showTooltip(catalog.i18nc("@label", "This setting is normally calculated, but it currently has an absolute value set.\n\nClick to restore the calculated value."))
|
||||
|
||||
onExited: {
|
||||
if(controlContainer.item && controlContainer.item.hovered) {
|
||||
|
@ -165,4 +165,6 @@ Item {
|
|||
width: UM.Theme.getSize("setting_control").width;
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
}
|
||||
|
||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue