diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-02-22 23:08:42 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-02-22 23:08:42 +0530 |
commit | 3f4ad1dd8b506462cc463b67a23adf0c7fce88aa (patch) | |
tree | 47e4851857bac3707335b31b100ba80c8d2ef2aa /resources/qml/Completer.qml | |
parent | add room alias delegate, fix some quickswitcher ui problems (diff) | |
download | nheko-3f4ad1dd8b506462cc463b67a23adf0c7fce88aa.tar.xz |
selecting room in quickswitcher now works, added completionSelected signal
Diffstat (limited to 'resources/qml/Completer.qml')
-rw-r--r-- | resources/qml/Completer.qml | 13 |
1 files changed, 11 insertions, 2 deletions
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 { |