Fix some more warnings around emoji components
This commit is contained in:
@@ -15,7 +15,7 @@ QQC2.ScrollView {
|
|||||||
readonly property int emojisPerRow: emojis.width / targetIconSize
|
readonly property int emojisPerRow: emojis.width / targetIconSize
|
||||||
required property bool withCustom
|
required property bool withCustom
|
||||||
readonly property var searchCategory: withCustom ? EmojiModel.Search : EmojiModel.SearchNoCustom
|
readonly property var searchCategory: withCustom ? EmojiModel.Search : EmojiModel.SearchNoCustom
|
||||||
required property QtObject header
|
required property Item header
|
||||||
property bool stickers: false
|
property bool stickers: false
|
||||||
|
|
||||||
signal chosen(string unicode)
|
signal chosen(string unicode)
|
||||||
@@ -75,7 +75,7 @@ QQC2.ScrollView {
|
|||||||
shortName: modelData.shortName,
|
shortName: modelData.shortName,
|
||||||
unicode: modelData.unicode,
|
unicode: modelData.unicode,
|
||||||
categoryIconSize: root.targetIconSize
|
categoryIconSize: root.targetIconSize
|
||||||
});
|
}) as EmojiTonesPicker;
|
||||||
tones.open();
|
tones.open();
|
||||||
tones.forceActiveFocus();
|
tones.forceActiveFocus();
|
||||||
}
|
}
|
||||||
@@ -85,14 +85,14 @@ QQC2.ScrollView {
|
|||||||
Kirigami.PlaceholderMessage {
|
Kirigami.PlaceholderMessage {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
icon.name: root.stickers ? "stickers" : "preferences-desktop-emoticons"
|
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
|
visible: emojis.count === 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Component {
|
Component {
|
||||||
id: tonesPopupComponent
|
id: tonesPopupComponent
|
||||||
EmojiTonesPicker {
|
EmojiTonesPicker {
|
||||||
onChosen: root.chosen(emoji)
|
onChosen: emoji => root.chosen(emoji)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user