fix pointer cursor on all click targets - move cursorShape from TapHandler to HoverHandler

This commit is contained in:
Damocles 2026-04-17 23:54:24 +02:00
parent a43d0c8dcd
commit a35f451fc0
16 changed files with 33 additions and 28 deletions

View file

@ -263,8 +263,10 @@ Column {
font.pixelSize: S.Theme.fontSize + 4
font.family: S.Theme.iconFontFamily
anchors.verticalCenter: parent.verticalCenter
TapHandler {
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
TapHandler {
enabled: root.player?.canGoPrevious ?? false
onTapped: root.player.previous()
}
@ -276,8 +278,10 @@ Column {
font.pixelSize: S.Theme.fontSize + 8
font.family: S.Theme.iconFontFamily
anchors.verticalCenter: parent.verticalCenter
TapHandler {
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
TapHandler {
onTapped: root.player?.togglePlaying()
}
}
@ -288,8 +292,10 @@ Column {
font.pixelSize: S.Theme.fontSize + 4
font.family: S.Theme.iconFontFamily
anchors.verticalCenter: parent.verticalCenter
TapHandler {
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
TapHandler {
enabled: root.player?.canGoNext ?? false
onTapped: root.player.next()
}

View file

@ -30,8 +30,10 @@ Column {
font.pixelSize: S.Theme.fontSize + 2
font.family: S.Theme.iconFontFamily
TapHandler {
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
TapHandler {
onTapped: if (root.sink?.audio)
root.sink.audio.muted = !root.sink.audio.muted
}
@ -211,8 +213,10 @@ Column {
font.pixelSize: S.Theme.fontSize
font.family: S.Theme.iconFontFamily
TapHandler {
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
TapHandler {
onTapped: if (streamEntry.modelData.audio)
streamEntry.modelData.audio.muted = !streamEntry.modelData.audio.muted
}