summaryrefslogtreecommitdiffstats
path: root/framework/qml/ConversationView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-13 11:37:07 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-13 11:37:07 +0200
commit1a8098a5e5c0336c37dcdf3eb2d53e2fa5ae2d5f (patch)
treedc7996a96dba34ff2ec9fcbb881f208b020133eb /framework/qml/ConversationView.qml
parent8b0af4ae9d9ed92eb99ec01354aaab970783ac42 (diff)
downloadkube-1a8098a5e5c0336c37dcdf3eb2d53e2fa5ae2d5f.tar.gz
kube-1a8098a5e5c0336c37dcdf3eb2d53e2fa5ae2d5f.zip
Allow setting the current item via mouse
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r--framework/qml/ConversationView.qml12
1 files changed, 12 insertions, 0 deletions
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 {
186 height: sheet.height + Kube.Units.gridUnit 186 height: sheet.height + Kube.Units.gridUnit
187 width: parent.width 187 width: parent.width
188 188
189 MouseArea {
190 anchors.fill: parent
191 enabled: parent.enabled
192 hoverEnabled: true
193 onEntered: {
194 root.currentIndex = index
195 }
196 onClicked: {
197 root.currentIndex = index
198 }
199 }
200
189 Rectangle { 201 Rectangle {
190 id: sheet 202 id: sheet
191 anchors.centerIn: parent 203 anchors.centerIn: parent