fix pointer cursor on all click targets - move cursorShape from TapHandler to HoverHandler
This commit is contained in:
parent
a43d0c8dcd
commit
a35f451fc0
16 changed files with 33 additions and 28 deletions
|
|
@ -26,9 +26,11 @@ Item {
|
|||
id: _hover
|
||||
}
|
||||
|
||||
HoverHandler {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onTapped: root.dismissRequested()
|
||||
}
|
||||
|
||||
|
|
@ -115,10 +117,10 @@ Item {
|
|||
|
||||
HoverHandler {
|
||||
id: _dismissHover
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onTapped: root.dismissRequested()
|
||||
}
|
||||
}
|
||||
|
|
@ -140,8 +142,10 @@ Item {
|
|||
height: _textCol.implicitHeight
|
||||
implicitHeight: _textCol.implicitHeight
|
||||
|
||||
TapHandler {
|
||||
HoverHandler {
|
||||
cursorShape: root.notif?.actions?.some(a => a.identifier === "default") ? Qt.PointingHandCursor : undefined
|
||||
}
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
const def = root.notif?.actions?.find(a => a.identifier === "default");
|
||||
if (def) {
|
||||
|
|
@ -260,10 +264,10 @@ Item {
|
|||
|
||||
HoverHandler {
|
||||
id: _actHover
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onTapped: {
|
||||
parent.modelData.invoke();
|
||||
if (root.dismissOnAction)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue