Add tooltip to object list

Contributes to issue CURA-6666.
This commit is contained in:
Ghostkeeper 2019-09-17 10:41:57 +02:00
parent f2fa8fd1f5
commit cd4f6ff3f4
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -51,5 +51,22 @@ Button
border.color: objectItemButton.checked ? UM.Theme.getColor("primary") : "transparent"
}
ToolTip
{
visible: hovered
delay: 1000
contentItem: Text
{
text: objectItemButton.text
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("tooltip_text")
}
background: Rectangle
{
color: UM.Theme.getColor("tooltip")
}
}
onClicked: Cura.SceneController.changeSelection(index)
}