Fixed some QIcon and kiconloader compile errors for Plasma

Reviewed by: Kevin Ottens
This commit is contained in:
Julien Desgats 2012-04-28 16:34:56 +02:00 committed by Kevin Ottens
parent af211f7c93
commit a69cb53cc5
4 changed files with 4 additions and 2 deletions

View File

@ -32,6 +32,7 @@
#include <kservicetypetrader.h>
#include <kstandarddirs.h>
#include <klocale.h>
#include <kiconloader.h>
#include "package.h"
#include "pluginloader.h"

View File

@ -25,6 +25,7 @@
#include <QFile>
#include <kstandarddirs.h>
#include <kiconloader.h>
#ifndef PLASMA_NO_KIO
#include <krun.h>

View File

@ -98,7 +98,7 @@ public:
pm = QPixmap(absImagePath);
}
static_cast<KPushButton*>(q->widget())->setIcon(KDE::icon(pm));
static_cast<KPushButton*>(q->widget())->setIcon(QIcon(pm));
}
void pressedChanged()

View File

@ -94,7 +94,7 @@ public:
pm = QPixmap(absImagePath);
}
static_cast<QToolButton*>(q->widget())->setIcon(KDE::icon(pm));
static_cast<QToolButton*>(q->widget())->setIcon(QIcon(pm));
}
void syncActiveRect();