summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete')
-rw-r--r--kopete/libkopete/private/kopeteemoticons.cpp7
-rw-r--r--kopete/libkopete/private/kopeteemoticons.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/kopete/libkopete/private/kopeteemoticons.cpp b/kopete/libkopete/private/kopeteemoticons.cpp
index 87da4cf7..0b234deb 100644
--- a/kopete/libkopete/private/kopeteemoticons.cpp
+++ b/kopete/libkopete/private/kopeteemoticons.cpp
@@ -549,6 +549,13 @@ QString Emoticons::parse( const QString &message, ParseMode mode )
return result;
}
+void Emoticons::reload()
+{
+ d->emoticonAndPicList.clear();
+ d->emoticonMap.clear();
+ initEmoticons( KopetePrefs::prefs()->iconTheme() );
+}
+
} //END namesapce Kopete
#include "kopeteemoticons.moc"
diff --git a/kopete/libkopete/private/kopeteemoticons.h b/kopete/libkopete/private/kopeteemoticons.h
index 848185e6..84fd305a 100644
--- a/kopete/libkopete/private/kopeteemoticons.h
+++ b/kopete/libkopete/private/kopeteemoticons.h
@@ -131,6 +131,12 @@ public:
* (only one emoticon per image)
*/
QMap<QString, QStringList> emoticonAndPicList();
+
+public slots:
+ /**
+ * reload the current emoticons theme
+ */
+ void reload();
private: