From a3423e5724208106d984b1d1de0f316ba2ebc0b4 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 31 Aug 2023 11:20:31 +0200 Subject: [PATCH] Fix warning about missing argument qml signal --- src/qml/Component/ChatBox/ChatBar.qml | 2 +- src/qml/Component/Emoji/EmojiPicker.qml | 2 +- src/qml/Dialog/EmojiDialog.qml | 2 +- src/qml/Page/RoomList/Page.qml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qml/Component/ChatBox/ChatBar.qml b/src/qml/Component/ChatBox/ChatBar.qml index 71db720b1..b9259ab5b 100644 --- a/src/qml/Component/ChatBox/ChatBar.qml +++ b/src/qml/Component/ChatBox/ChatBar.qml @@ -411,7 +411,7 @@ QQC2.Control { currentRoom: root.currentRoom - onChosen: insertText(emoji) + onChosen: emoji => insertText(emoji) onClosed: if (emojiAction.checked) emojiAction.checked = false } } diff --git a/src/qml/Component/Emoji/EmojiPicker.qml b/src/qml/Component/Emoji/EmojiPicker.qml index 9f177096e..bf8938fa4 100644 --- a/src/qml/Component/Emoji/EmojiPicker.qml +++ b/src/qml/Component/Emoji/EmojiPicker.qml @@ -116,7 +116,7 @@ ColumnLayout { Layout.fillWidth: true Layout.fillHeight: true withCustom: root.includeCustom - onChosen: root.chosen(unicode) + onChosen: unicode => root.chosen(unicode) header: categories Keys.forwardTo: searchField stickers: root.selectedType === 1 diff --git a/src/qml/Dialog/EmojiDialog.qml b/src/qml/Dialog/EmojiDialog.qml index 91651c8f9..38fbeb2b0 100644 --- a/src/qml/Dialog/EmojiDialog.qml +++ b/src/qml/Dialog/EmojiDialog.qml @@ -66,7 +66,7 @@ QQC2.Popup { currentRoom: root.currentRoom includeCustom: emojiPopup.includeCustom showQuickReaction: emojiPopup.showQuickReaction - onChosen: { + onChosen: emoji => { emojiPopup.chosen(emoji) if (emojiPopup.closeOnChosen) emojiPopup.close() } diff --git a/src/qml/Page/RoomList/Page.qml b/src/qml/Page/RoomList/Page.qml index 61d7e4119..e06aa6f1c 100644 --- a/src/qml/Page/RoomList/Page.qml +++ b/src/qml/Page/RoomList/Page.qml @@ -161,7 +161,7 @@ Kirigami.Page { ItemSelectionModel { id: itemSelection model: root.roomListModel - onCurrentChanged: listView.currentIndex = sortFilterRoomListModel.mapFromSource(current).row + onCurrentChanged: (current, previous) => listView.currentIndex = sortFilterRoomListModel.mapFromSource(current).row } model: SortFilterRoomListModel {