Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 92a6851c authored by Laurent Montel's avatar Laurent Montel 😁

Add more emoticon

parent f5e1bbff
......@@ -168,7 +168,12 @@ QString TextUtils::flowText(QString &wrappedText, const QString &indent, int max
QList<uint> TextUtils::unicodeFullEmoji()
{
return TextUtils::unicodeFacesEmoji() + TextUtils::unicodeAnimalsEmoji() + TextUtils::unicodeEmotionEmoji() + TextUtils::unicodeBodyEmoji();
return TextUtils::unicodeFacesEmoji() +
TextUtils::unicodeAnimalsEmoji() +
TextUtils::unicodeEmotionEmoji() +
TextUtils::unicodeBodyEmoji() +
TextUtils::unicodeTransportEmoji() +
TextUtils::unicodeEventEmoji();
}
QList<uint> TextUtils::unicodeFacesEmoji()
......@@ -201,3 +206,17 @@ QList<uint> TextUtils::unicodeBodyEmoji()
return lstEmoji;
}
QList<uint> TextUtils::unicodeTransportEmoji()
{
//Add more
const QList<uint> lstEmoji{0x1F682, 0x1F683, 0x1F684, 0x1F685, 0x1F686, 0x1F687, 0x1F688, 0x1F689, 0x1F69D, 0x1F691, 0x1F692, 0x1F693, 0x1F694, 0x1F695, 0x1F696, 0x1F697};
return lstEmoji;
}
QList<uint> TextUtils::unicodeEventEmoji()
{
//Add more
const QList<uint> lstEmoji{0x1F383, 0x1F384, 0x1F386, 0x1F387, 0x1F9E8, 0x2728, 0x1F388};
return lstEmoji;
}
......@@ -61,6 +61,8 @@ KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QList<uint> unicodeFacesEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QList<uint> unicodeAnimalsEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QList<uint> unicodeEmotionEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QList<uint> unicodeBodyEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QList<uint> unicodeTransportEmoji();
KPIMTEXTEDIT_EXPORT Q_REQUIRED_RESULT QList<uint> unicodeEventEmoji();
}
}
......
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