From 78fed0531dc39dfb228c99153493e11b5b9a1538 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 6 Feb 2017 15:17:59 +0100 Subject: [PATCH] Fix hovering the setting box The 'hovered' property was taken from the example of the setting item, but that doesn't exist apparently. I looked up how it is normally done in QML. Contributes to issue CURA-3161. --- resources/qml/PrintMonitor.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index b61d56feec..b28944f008 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -192,7 +192,7 @@ Column id: preheatTemperatureControl color: UM.Theme.getColor("setting_validation_ok") border.width: UM.Theme.getSize("default_lining").width - border.color: hovered ? UM.Theme.getColor("setting_control_border_highlight") : UM.Theme.getColor("setting_control_border") + border.color: mouseArea.containsMouse ? UM.Theme.getColor("setting_control_border_highlight") : UM.Theme.getColor("setting_control_border") anchors.left: parent.left anchors.leftMargin: UM.Theme.getSize("default_margin").width anchors.bottom: parent.bottom @@ -219,6 +219,7 @@ Column MouseArea //Change cursor on hovering. { id: mouseArea + hoverEnabled: true anchors.fill: parent cursorShape: Qt.IBeamCursor }