Commit daa1bed6 authored by Laurent Montel's avatar Laurent Montel 😁

Load emoticons from theme

parent 79f70a97
...@@ -46,7 +46,6 @@ void EmoticonUnicodeTab::loadEmoticons() ...@@ -46,7 +46,6 @@ void EmoticonUnicodeTab::loadEmoticons()
createPlainTextEmoticonTab(i18n("Flags"), KPIMTextEdit::TextUtils::unicodeFlagsEmoji()); createPlainTextEmoticonTab(i18n("Flags"), KPIMTextEdit::TextUtils::unicodeFlagsEmoji());
} else { } else {
createEmoticonTab(QString()); createEmoticonTab(QString());
//TODO
} }
} }
...@@ -54,11 +53,9 @@ void EmoticonUnicodeTab::createEmoticonTab(const QString &str) ...@@ -54,11 +53,9 @@ void EmoticonUnicodeTab::createEmoticonTab(const QString &str)
{ {
//Only one tab //Only one tab
EmoticonListWidgetSelector *selector = new EmoticonListWidgetSelector(this); EmoticonListWidgetSelector *selector = new EmoticonListWidgetSelector(this);
//TODO load it selector->loadEmotionsFromTheme();
//selector->setEmoticons(emoticons);
addTab(selector, str); addTab(selector, str);
connect(selector, &KPIMTextEdit::EmoticonListWidgetSelector::itemSelected, this, &EmoticonUnicodeTab::itemSelected); connect(selector, &KPIMTextEdit::EmoticonListWidgetSelector::itemSelected, this, &EmoticonUnicodeTab::itemSelected);
//TODO
} }
void EmoticonUnicodeTab::createPlainTextEmoticonTab(const QString &str, const QList<uint> &emoticons) void EmoticonUnicodeTab::createPlainTextEmoticonTab(const QString &str, const QList<uint> &emoticons)
......
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