mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:19:02 +08:00
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.
This commit is contained in:
parent
27ff55d75b
commit
78fed0531d
@ -192,7 +192,7 @@ Column
|
|||||||
id: preheatTemperatureControl
|
id: preheatTemperatureControl
|
||||||
color: UM.Theme.getColor("setting_validation_ok")
|
color: UM.Theme.getColor("setting_validation_ok")
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
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.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
@ -219,6 +219,7 @@ Column
|
|||||||
MouseArea //Change cursor on hovering.
|
MouseArea //Change cursor on hovering.
|
||||||
{
|
{
|
||||||
id: mouseArea
|
id: mouseArea
|
||||||
|
hoverEnabled: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.IBeamCursor
|
cursorShape: Qt.IBeamCursor
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user