Commit 2e2b8792 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use all emoji here

parent 9d1a158e
......@@ -45,7 +45,7 @@ void EmoticonUnicodeTab::createSearchTab()
auto emoticonModel = new EmoticonUnicodeModel(this);
mEmoticonUnicodeProxyModel = new EmoticonUnicodeProxyModel(this);
mEmoticonUnicodeProxyModel->setSourceModel(emoticonModel);
emoticonModel->setEmoticonList(EmoticonUnicodeUtils::unicodeFaceEmoji() + EmoticonUnicodeUtils::unicodeAnimalsEmoji());
emoticonModel->setEmoticonList(EmoticonUnicodeUtils::allUnicode());
allEmojisView->setModel(mEmoticonUnicodeProxyModel);
mSearchTabIndex = addTab(allEmojisView, i18n("Search"));
connect(allEmojisView, &KPIMTextEdit::EmoticonListView::emojiItemSelected, this, &EmoticonUnicodeTab::itemSelected);
......
......@@ -1989,3 +1989,18 @@ QVector<EmoticonUnicodeUtils::EmoticonStruct> EmoticonUnicodeUtils::unicodeAward
};
return lst;
}
QVector<EmoticonUnicodeUtils::EmoticonStruct> EmoticonUnicodeUtils::allUnicode()
{
return EmoticonUnicodeUtils::unicodeFlagsEmoji() + EmoticonUnicodeUtils::unicodeFaceEmoji() + EmoticonUnicodeUtils::unicodeAnimalsEmoji()
+ EmoticonUnicodeUtils::unicodePlantEmoji() + EmoticonUnicodeUtils::unicodeScienceEmoji() + EmoticonUnicodeUtils::unicodeComputerEmoji()
+ EmoticonUnicodeUtils::unicodeBookPaperEmoji() + EmoticonUnicodeUtils::unicodeSoundMusicEmoji() + EmoticonUnicodeUtils::unicodeWeatherEmoji()
+ EmoticonUnicodeUtils::unicodeTimeEmoji() + EmoticonUnicodeUtils::unicodeGameEmoji() + EmoticonUnicodeUtils::unicodeClothingEmoji()
+ EmoticonUnicodeUtils::unicodeEventEmoji() + EmoticonUnicodeUtils::unicodeFoodEmoji() + EmoticonUnicodeUtils::unicodeTransportEmoji()
+ EmoticonUnicodeUtils::unicodePersonEmoji() + EmoticonUnicodeUtils::unicodePlaceEmoji() + EmoticonUnicodeUtils::unicodeSymbolsEmoji()
+ EmoticonUnicodeUtils::unicodeSportEmoji() + EmoticonUnicodeUtils::unicodeEmotionEmoji() + EmoticonUnicodeUtils::unicodeMoneyEmoji()
+ EmoticonUnicodeUtils::unicodeBodyEmoji() + EmoticonUnicodeUtils::unicodeMailEmoji() + EmoticonUnicodeUtils::unicodeOfficeEmoji()
+ EmoticonUnicodeUtils::unicodeToolsEmoji() + EmoticonUnicodeUtils::unicodePhoneEmoji() + EmoticonUnicodeUtils::unicodeLockEmoji()
+ EmoticonUnicodeUtils::unicodeDrinkEmoji() + EmoticonUnicodeUtils::unicodeVideoEmoji() + EmoticonUnicodeUtils::unicodeHouseEmoji()
+ EmoticonUnicodeUtils::unicodeDishwareEmoji() + EmoticonUnicodeUtils::unicodeHotelEmoji() + EmoticonUnicodeUtils::unicodeAwardMedalEmoji();
}
......@@ -58,6 +58,7 @@ KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QVector<EmoticonStruct> unicodeHouseEmoji(
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QVector<EmoticonStruct> unicodeDishwareEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QVector<EmoticonStruct> unicodeHotelEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QVector<EmoticonStruct> unicodeAwardMedalEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QVector<EmoticonStruct> allUnicode();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment