diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2020-06-09 21:28:15 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2020-06-09 21:28:15 -0400 |
commit | 0078c72a374940bc815102315043106350da0911 (patch) | |
tree | 9284612527426adf9c466d85b246f51c0865e385 /resources/qml/emoji | |
parent | Remove duplicate search icons (diff) | |
download | nheko-0078c72a374940bc815102315043106350da0911.tar.xz |
Remove signals in favor of direct function calls
Diffstat (limited to 'resources/qml/emoji')
-rw-r--r-- | resources/qml/emoji/EmojiPicker.qml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/resources/qml/emoji/EmojiPicker.qml b/resources/qml/emoji/EmojiPicker.qml index b76596d3..b96adf7e 100644 --- a/resources/qml/emoji/EmojiPicker.qml +++ b/resources/qml/emoji/EmojiPicker.qml @@ -10,7 +10,7 @@ import "../" Popup { - function show(showAt, room_id, event_id) { + function show(showAt, room_id, event_id) { console.debug("Showing emojiPicker for " + event_id + "in room " + room_id) parent = showAt x = Math.round((showAt.width - width) / 2) @@ -18,8 +18,7 @@ Popup { emojiPopup.room_id = room_id emojiPopup.event_id = event_id open() - } - signal picked(string room_id, string event_id, string key) + } property string room_id property string event_id @@ -42,8 +41,6 @@ Popup { focus: true closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside - onPicked: emojiPopup.close() - ColumnLayout { id: columnView anchors.fill: parent @@ -106,7 +103,8 @@ Popup { // TODO: maybe add favorites at some point? onClicked: { console.debug("Picked " + model.unicode + "in response to " + emojiPopup.event_id + " in room " + emojiPopup.room_id) - emojiPopup.picked(emojiPopup.room_id, emojiPopup.event_id, model.unicode) + emojiPopup.close() + timelineManager.queueReactionMessage(emojiPopup.room_id, emojiPopup.event_id, model.unicode) } } |