From 3f4ad1dd8b506462cc463b67a23adf0c7fce88aa Mon Sep 17 00:00:00 2001 From: Jedi18 Date: Mon, 22 Feb 2021 23:08:42 +0530 Subject: selecting room in quickswitcher now works, added completionSelected signal --- resources/qml/Completer.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'resources/qml/Completer.qml') diff --git a/resources/qml/Completer.qml b/resources/qml/Completer.qml index 76e08e7e..a4f81e6e 100644 --- a/resources/qml/Completer.qml +++ b/resources/qml/Completer.qml @@ -15,6 +15,7 @@ Popup { property alias count: listView.count signal completionClicked(string completion) + signal completionSelected(string id) function up() { if (bottomToTop) @@ -91,7 +92,12 @@ Popup { anchors.fill: parent hoverEnabled: true onPositionChanged: popup.currentIndex = model.index - onClicked: popup.completionClicked(completer.completionAt(model.index)) + onClicked: { + popup.completionClicked(completer.completionAt(model.index)) + if(popup.completerName == "room") { + popup.completionSelected(model.roomid) + } + } Ripple { rippleTarget: mouseArea @@ -171,7 +177,10 @@ Popup { height: 24 width: 24 url: model.avatarUrl.replace("mxc://", "image://MxcImage/") - onClicked: popup.completionClicked(completer.completionAt(model.index)) + onClicked: { + popup.completionClicked(completer.completionAt(model.index)) + popup.completionSelected(model.roomid) + } } Label { -- cgit 1.5.1