HoverableListItem: add tapped signal, remove inline TapHandlers
This commit is contained in:
parent
e712842424
commit
732a14e5cb
4 changed files with 14 additions and 15 deletions
|
|
@ -5,6 +5,7 @@ Item {
|
|||
id: root
|
||||
|
||||
readonly property bool hovered: _hover.hovered
|
||||
signal tapped
|
||||
|
||||
width: parent?.width ?? 0
|
||||
height: 32
|
||||
|
|
@ -22,4 +23,8 @@ Item {
|
|||
id: _hover
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
onTapped: root.tapped()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue