From 1a8098a5e5c0336c37dcdf3eb2d53e2fa5ae2d5f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 13 Apr 2017 11:37:07 +0200 Subject: Allow setting the current item via mouse --- framework/qml/ConversationView.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index 29711044..8c6e2d38 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml @@ -186,6 +186,18 @@ Rectangle { height: sheet.height + Kube.Units.gridUnit width: parent.width + MouseArea { + anchors.fill: parent + enabled: parent.enabled + hoverEnabled: true + onEntered: { + root.currentIndex = index + } + onClicked: { + root.currentIndex = index + } + } + Rectangle { id: sheet anchors.centerIn: parent -- cgit v1.2.3