mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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 manageProfilesAction
|
||||||
property Action addProfileAction
|
property Action addProfileAction
|
||||||
|
|
||||||
|
signal showTooltip(Item item, point location, string text)
|
||||||
|
signal hideTooltip()
|
||||||
|
|
||||||
Rectangle{
|
Rectangle{
|
||||||
id: globalProfileRow
|
id: globalProfileRow
|
||||||
anchors.top: base.top
|
anchors.top: base.top
|
||||||
|
|
@ -133,6 +136,12 @@ Item{
|
||||||
iconSource: UM.Theme.getIcon("star");
|
iconSource: UM.Theme.getIcon("star");
|
||||||
|
|
||||||
onClicked: base.manageProfilesAction.trigger()
|
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
|
addProfileAction: base.addProfileAction
|
||||||
manageProfilesAction: base.manageProfilesAction
|
manageProfilesAction: base.manageProfilesAction
|
||||||
anchors.top: settingsModeSelection.bottom
|
anchors.top: settingsModeSelection.bottom
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: totalHeightProfileSetup
|
height: totalHeightProfileSetup
|
||||||
|
|
||||||
|
onShowTooltip: base.showTooltip(item, location, text)
|
||||||
|
onHideTooltip: base.hideTooltip()
|
||||||
}
|
}
|
||||||
|
|
||||||
currentModeIndex:
|
currentModeIndex:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue