Add Quick Reaction to EmojiDialog

This commit is contained in:
Gary Wang
2022-12-03 20:26:56 +08:00
parent bfa08d178f
commit 507bd44bbf
4 changed files with 36 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ QQC2.Popup {
property bool includeCustom: false
property bool closeOnChosen: true
property bool showQuickReaction: false
signal chosen(string emoji)
@@ -44,6 +45,7 @@ QQC2.Popup {
contentItem: EmojiPicker {
height: 400
includeCustom: emojiPopup.includeCustom
showQuickReaction: emojiPopup.showQuickReaction
onChosen: {
emojiPopup.chosen(emoji)
if (emojiPopup.closeOnChosen) emojiPopup.close()