Fix warning about missing argument qml signal

This commit is contained in:
Laurent Montel
2023-08-31 11:20:31 +02:00
committed by Tobias Fella
parent e09f31f891
commit a3423e5724
4 changed files with 4 additions and 4 deletions

View File

@@ -411,7 +411,7 @@ QQC2.Control {
currentRoom: root.currentRoom currentRoom: root.currentRoom
onChosen: insertText(emoji) onChosen: emoji => insertText(emoji)
onClosed: if (emojiAction.checked) emojiAction.checked = false onClosed: if (emojiAction.checked) emojiAction.checked = false
} }
} }

View File

@@ -116,7 +116,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
withCustom: root.includeCustom withCustom: root.includeCustom
onChosen: root.chosen(unicode) onChosen: unicode => root.chosen(unicode)
header: categories header: categories
Keys.forwardTo: searchField Keys.forwardTo: searchField
stickers: root.selectedType === 1 stickers: root.selectedType === 1

View File

@@ -66,7 +66,7 @@ QQC2.Popup {
currentRoom: root.currentRoom currentRoom: root.currentRoom
includeCustom: emojiPopup.includeCustom includeCustom: emojiPopup.includeCustom
showQuickReaction: emojiPopup.showQuickReaction showQuickReaction: emojiPopup.showQuickReaction
onChosen: { onChosen: emoji => {
emojiPopup.chosen(emoji) emojiPopup.chosen(emoji)
if (emojiPopup.closeOnChosen) emojiPopup.close() if (emojiPopup.closeOnChosen) emojiPopup.close()
} }

View File

@@ -161,7 +161,7 @@ Kirigami.Page {
ItemSelectionModel { ItemSelectionModel {
id: itemSelection id: itemSelection
model: root.roomListModel model: root.roomListModel
onCurrentChanged: listView.currentIndex = sortFilterRoomListModel.mapFromSource(current).row onCurrentChanged: (current, previous) => listView.currentIndex = sortFilterRoomListModel.mapFromSource(current).row
} }
model: SortFilterRoomListModel { model: SortFilterRoomListModel {