From cd4f6ff3f4bc0f97f9e7b65f608f1f42c66bb016 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 17 Sep 2019 10:41:57 +0200 Subject: [PATCH] Add tooltip to object list Contributes to issue CURA-6666. --- resources/qml/ObjectItemButton.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/resources/qml/ObjectItemButton.qml b/resources/qml/ObjectItemButton.qml index 683d0ed52b..7acfa7a7b5 100644 --- a/resources/qml/ObjectItemButton.qml +++ b/resources/qml/ObjectItemButton.qml @@ -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) }