summaryrefslogtreecommitdiff
path: root/Events.qml
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2021-09-15 21:53:42 +0200
committerTimotej Lazar <timotej.lazar@araneo.si>2021-09-16 20:34:02 +0200
commit0bced7522b17679438eb862aed6825134c9959ea (patch)
tree1feed5dc7dd43224478e54e88a0ad92e4bc0e917 /Events.qml
parentbb5b0b4b3fea46b10ca48679f16cc30df05e0ba9 (diff)
Seek to event on double click instead of highlight
Diffstat (limited to 'Events.qml')
-rw-r--r--Events.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/Events.qml b/Events.qml
index bce1aac..2128f39 100644
--- a/Events.qml
+++ b/Events.qml
@@ -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 }