summaryrefslogtreecommitdiffstats
path: root/src/customtraylabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/customtraylabel.cpp')
-rw-r--r--src/customtraylabel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/customtraylabel.cpp b/src/customtraylabel.cpp
index 8683c96..684a098 100644
--- a/src/customtraylabel.cpp
+++ b/src/customtraylabel.cpp
@@ -29,6 +29,7 @@
#include <qsize.h>
#include <stdlib.h>
+#include <kiconloader.h>
#include <kglobal.h>
#include <klocale.h>
@@ -55,9 +56,7 @@ CustomTrayLabel::CustomTrayLabel(const QStringList& argv, pid_t pid,
*/
void CustomTrayLabel::installMenu()
{
- QPixmap kdocker_png(QString(ICONS_PATH) + "/kdocker.png");
- if (kdocker_png.isNull())
- kdocker_png.load(qApp->applicationDirPath() + "/icons/kdocker.png");
+ QPixmap kdocker_png(KGlobal::iconLoader()->loadIcon("kdocker", KIcon::NoGroup, KIcon::SizeSmall));
setIcon(kdocker_png);
TrayLabelMgr *tlMgr = TrayLabelMgr::instance();