Add pointing hand cursor shape when hovering the AccountWidget.

Contributes to CURA-5784.
This commit is contained in:
Diego Prado Gesto 2018-10-24 11:28:52 +02:00
parent bf1c23243e
commit e85b5febe1

View file

@ -29,6 +29,15 @@ Button
outlineColor: loggedIn ? UM.Theme.getColor("account_widget_outline_active") : UM.Theme.getColor("account_widget_outline_inactive")
}
MouseArea
{
id: mouseArea
anchors.fill: parent
onPressed: mouse.accepted = false
hoverEnabled: true
cursorShape: accountWidget.enabled ? (hovered ? Qt.PointingHandCursor : Qt.ArrowCursor) : Qt.ForbiddenCursor
}
background: Item {}
onClicked: popup.opened ? popup.close() : popup.open()