diff --git a/components/StyledSlider.qml b/components/StyledSlider.qml index 644d024..e0b0fca 100644 --- a/components/StyledSlider.qml +++ b/components/StyledSlider.qml @@ -7,6 +7,10 @@ Slider { height: 24 + HoverHandler { + cursorShape: Qt.PointingHandCursor + } + background: Rectangle { x: control.leftPadding y: control.topPadding + control.availableHeight / 2 - height / 2 @@ -18,12 +22,12 @@ Slider { color: Theme.palette.base100 Rectangle { - width: control.visualPosition * parent.width - Behavior on width { - NumberAnimation { - duration: 75 + width: control.visualPosition * parent.width + Behavior on width { + NumberAnimation { + duration: 75 + } } - } height: parent.height color: Theme.palette.primary radius: 8 diff --git a/components/StyledSwitch.qml b/components/StyledSwitch.qml index b17c6d2..6e5b726 100644 --- a/components/StyledSwitch.qml +++ b/components/StyledSwitch.qml @@ -4,6 +4,11 @@ import QtQuick.Controls Switch { id: control + + HoverHandler { + cursorShape: Qt.PointingHandCursor + } + indicator: Item { implicitWidth: 48 implicitHeight: 22