mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add pointing hand cursor shape when hovering the AccountWidget.
Contributes to CURA-5784.
This commit is contained in:
parent
bf1c23243e
commit
e85b5febe1
1 changed files with 9 additions and 0 deletions
|
|
@ -29,6 +29,15 @@ Button
|
||||||
outlineColor: loggedIn ? UM.Theme.getColor("account_widget_outline_active") : UM.Theme.getColor("account_widget_outline_inactive")
|
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 {}
|
background: Item {}
|
||||||
|
|
||||||
onClicked: popup.opened ? popup.close() : popup.open()
|
onClicked: popup.opened ? popup.close() : popup.open()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue