fix naming issues with emoji, edit how codegen works
This commit is contained in:
parent
f465a5b52f
commit
a6090f4a1c
12 changed files with 1268 additions and 457 deletions
|
|
@ -12,31 +12,6 @@
|
|||
#include "Cache.h"
|
||||
#include "emoji/Provider.h"
|
||||
|
||||
QString
|
||||
emoji::categoryToName(emoji::Emoji::Category cat)
|
||||
{
|
||||
switch (cat) {
|
||||
case emoji::Emoji::Category::People:
|
||||
return QCoreApplication::translate("emoji-catagory", "People");
|
||||
case emoji::Emoji::Category::Nature:
|
||||
return QCoreApplication::translate("emoji-catagory", "Nature");
|
||||
case emoji::Emoji::Category::Food:
|
||||
return QCoreApplication::translate("emoji-catagory", "Food");
|
||||
case emoji::Emoji::Category::Activity:
|
||||
return QCoreApplication::translate("emoji-catagory", "Activity");
|
||||
case emoji::Emoji::Category::Travel:
|
||||
return QCoreApplication::translate("emoji-catagory", "Travel");
|
||||
case emoji::Emoji::Category::Objects:
|
||||
return QCoreApplication::translate("emoji-catagory", "Objects");
|
||||
case emoji::Emoji::Category::Symbols:
|
||||
return QCoreApplication::translate("emoji-catagory", "Symbols");
|
||||
case emoji::Emoji::Category::Flags:
|
||||
return QCoreApplication::translate("emoji-catagory", "Flags");
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
static QString
|
||||
categoryToIcon(emoji::Emoji::Category cat)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue