Add tooltips

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-11-30 17:44:58 +01:00
parent 487bf41a7b
commit 574b1000f6
5 changed files with 24 additions and 8 deletions

View file

@ -16,9 +16,9 @@ Item
property alias enableSectionSwitchVisible: enableSectionSwitch.visible
property alias enableSectionSwitchChecked: enableSectionSwitch.checked
property alias enableSectionSwitchEnabled: enableSectionSwitch.enabled
property string tooltipText: "test"
property var enableSectionClicked: { return }
property int leftColumnWidth: Math.floor(width * 0.35)
property var toolTipText: ""
property alias contents: settingColumn.children
@ -49,13 +49,12 @@ Item
MouseArea
{
id: tooltipMouseArea
id: tooltipArea
anchors.fill: sectionTitle
propagateComposedEvents: true
hoverEnabled: true
onEntered: { print("showTooltip") }
onExited: { print("hideTooltip" ) }
onEntered: base.showTooltip(parent, Qt.point(-UM.Theme.getSize("thick_margin").width, 0), tooltipText)
onExited: base.hideTooltip()
}
}