mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Add tooltip to "customised values" indicator
CURA-909
This commit is contained in:
parent
6b2b948623
commit
c37c63fa89
2 changed files with 13 additions and 1 deletions
|
@ -15,6 +15,9 @@ Item{
|
|||
property Action manageProfilesAction
|
||||
property Action addProfileAction
|
||||
|
||||
signal showTooltip(Item item, point location, string text)
|
||||
signal hideTooltip()
|
||||
|
||||
Rectangle{
|
||||
id: globalProfileRow
|
||||
anchors.top: base.top
|
||||
|
@ -133,6 +136,12 @@ Item{
|
|||
iconSource: UM.Theme.getIcon("star");
|
||||
|
||||
onClicked: base.manageProfilesAction.trigger()
|
||||
onEntered:
|
||||
{
|
||||
var content = catalog.i18nc("@tooltip","Some setting values are different from the values stored in the profile.\n\nClick to open the profile manager.")
|
||||
base.showTooltip(globalProfileRow, Qt.point(0, globalProfileRow.height / 2), content)
|
||||
}
|
||||
onExited: base.hideTooltip()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,9 +68,12 @@ Rectangle
|
|||
addProfileAction: base.addProfileAction
|
||||
manageProfilesAction: base.manageProfilesAction
|
||||
anchors.top: settingsModeSelection.bottom
|
||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||
width: parent.width
|
||||
height: totalHeightProfileSetup
|
||||
|
||||
onShowTooltip: base.showTooltip(item, location, text)
|
||||
onHideTooltip: base.hideTooltip()
|
||||
}
|
||||
|
||||
currentModeIndex:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue