summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/private
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-13 06:26:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-13 06:26:27 +0000
commit9fab5b8a216e283e563f3457315715672bc8b55a (patch)
treec1251952e4e0e28fad0bca829d49335ff15b6e98 /kopete/libkopete/private
parentbcb704366cb5e333a626c18c308c7e0448a8e69f (diff)
downloadtdenetwork-9fab5b8a216e283e563f3457315715672bc8b55a.tar.gz
tdenetwork-9fab5b8a216e283e563f3457315715672bc8b55a.zip
Update to Trinity 3.5.11
Will need to watch for commit warnings and rebuild test git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1061808 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/private')
-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: