summary refs log tree commit diff
path: root/resources/qml/Completer.qml
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-23 00:18:31 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-23 00:18:31 +0530
commitb1dec6f6acec929495f66ef7d0fcb3cac9ee25e3 (patch)
tree835ae4d880c4eda53fe1d6f26b25c11f51ec72c7 /resources/qml/Completer.qml
parentselecting room in quickswitcher now works, added completionSelected signal (diff)
downloadnheko-b1dec6f6acec929495f66ef7d0fcb3cac9ee25e3.tar.xz
enter key now works, fix room highlighting and add overlay
Diffstat (limited to 'resources/qml/Completer.qml')
-rw-r--r--resources/qml/Completer.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/qml/Completer.qml b/resources/qml/Completer.qml
index a4f81e6e..cef19fbf 100644
--- a/resources/qml/Completer.qml
+++ b/resources/qml/Completer.qml
@@ -52,6 +52,12 @@ Popup {
             return null;
     }
 
+    function finishCompletion() {
+        if(popup.completerName == "room") {
+            popup.completionSelected(listView.itemAtIndex(currentIndex).modelData.roomid)
+        }
+    }
+
     onCompleterNameChanged: {
         if (completerName) {
             if (completerName == "user") {
@@ -85,6 +91,7 @@ Popup {
             color: model.index == popup.currentIndex ? colors.highlight : colors.base
             height: chooser.childrenRect.height + 4
             implicitWidth: fullWidth ? popup.width : chooser.childrenRect.width + 4
+            property variant modelData: model
 
             MouseArea {
                 id: mouseArea