Add tooltip to "customised values" indicator

CURA-909
This commit is contained in:
fieldOfView 2016-03-22 17:24:35 +01:00
parent 6b2b948623
commit c37c63fa89
2 changed files with 13 additions and 1 deletions

View file

@ -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()
}
}
}

View file

@ -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: