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 daa1bed6 authored by Laurent Montel's avatar Laurent Montel 😁

Load emoticons from theme

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