Seek to event on double click instead of highlight

This commit is contained in:
Timotej Lazar 2021-09-15 21:53:42 +02:00
parent bb5b0b4b3f
commit 0bced7522b
No known key found for this signature in database
GPG key ID: B6F38793D143456F
2 changed files with 6 additions and 3 deletions

View file

@ -12,6 +12,8 @@ ListView {
required property var tags // tag definitions
property bool editing: false
signal selected(var event)
clip: true
focus: true
highlightMoveDuration: 0
@ -100,6 +102,7 @@ ListView {
control.currentIndex = index
control.forceActiveFocus()
}
onDoubleClicked: control.selected(event)
contentItem: ColumnLayout {
anchors { left: parent.left; right: parent.right; margins: 5 }