summaryrefslogtreecommitdiffstats
path: root/src/qtraylabel.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-07-07 20:25:38 +0200
committerSlávek Banko <[email protected]>2013-07-10 02:11:19 +0200
commit400e114c310a8a35bd3418be22ab04661cb7bfdc (patch)
treefa661eeeb981a001d98735e9c49320fbf3a20746 /src/qtraylabel.cpp
parent16361fd6e9621104f1059840888967c801572f64 (diff)
downloadtdedocker-400e114c310a8a35bd3418be22ab04661cb7bfdc.tar.gz
tdedocker-400e114c310a8a35bd3418be22ab04661cb7bfdc.zip
Switch to use kiconloader instead of hard-coded path
Diffstat (limited to 'src/qtraylabel.cpp')
-rw-r--r--src/qtraylabel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qtraylabel.cpp b/src/qtraylabel.cpp
index a29e442..34284bd 100644
--- a/src/qtraylabel.cpp
+++ b/src/qtraylabel.cpp
@@ -32,6 +32,7 @@
#include "trace.h"
#include "qtraylabel.h"
+#include <kiconloader.h>
#include <kglobal.h>
#include <X11/cursorfont.h>
@@ -620,8 +621,7 @@ void QTrayLabel::handleIconChange(void)
QImage image;
if (!window_icon)
{
- if (!image.load(QString(ICONS_PATH) + "/question.png"))
- image.load(qApp->applicationDirPath() + "/icons/question.png");
+ image = KGlobal::iconLoader()->loadIcon("question", KIcon::NoGroup, KIcon::SizeMedium);
}
else image = QPixmap((const char **) window_icon).convertToImage();
if (window_icon) XpmFree(window_icon);