From c55f30be5bd81e4156dc562f03d0d056560b602f Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 31 Aug 2025 23:01:51 +0200 Subject: [PATCH] Fix some more warnings around emoji components --- src/chatbar/EmojiGrid.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chatbar/EmojiGrid.qml b/src/chatbar/EmojiGrid.qml index f2224d72b..07c47919c 100644 --- a/src/chatbar/EmojiGrid.qml +++ b/src/chatbar/EmojiGrid.qml @@ -15,7 +15,7 @@ QQC2.ScrollView { readonly property int emojisPerRow: emojis.width / targetIconSize required property bool withCustom readonly property var searchCategory: withCustom ? EmojiModel.Search : EmojiModel.SearchNoCustom - required property QtObject header + required property Item header property bool stickers: false signal chosen(string unicode) @@ -75,7 +75,7 @@ QQC2.ScrollView { shortName: modelData.shortName, unicode: modelData.unicode, categoryIconSize: root.targetIconSize - }); + }) as EmojiTonesPicker; tones.open(); tones.forceActiveFocus(); } @@ -85,14 +85,14 @@ QQC2.ScrollView { Kirigami.PlaceholderMessage { anchors.centerIn: parent icon.name: root.stickers ? "stickers" : "preferences-desktop-emoticons" - text: root.stickers ? i18n("No stickers") : i18n("No emojis") + text: root.stickers ? i18nc("@info", "No stickers") : i18nc("@info", "No emojis") visible: emojis.count === 0 } } Component { id: tonesPopupComponent EmojiTonesPicker { - onChosen: root.chosen(emoji) + onChosen: emoji => root.chosen(emoji) } } }