summaryrefslogtreecommitdiffstats
path: root/src/customtraylabel.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-07 20:25:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-10 02:11:19 +0200
commit400e114c310a8a35bd3418be22ab04661cb7bfdc (patch)
treefa661eeeb981a001d98735e9c49320fbf3a20746 /src/customtraylabel.cpp
parent16361fd6e9621104f1059840888967c801572f64 (diff)
downloadtdedocker-400e114c310a8a35bd3418be22ab04661cb7bfdc.tar.gz
tdedocker-400e114c310a8a35bd3418be22ab04661cb7bfdc.zip
Switch to use kiconloader instead of hard-coded path
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();