Use QIcon

This commit is contained in:
Sebastian Kügler 2013-02-14 00:46:18 +01:00
parent f4dbc62264
commit 9864f15c56

View File

@ -23,6 +23,7 @@
#include <QAction>
#include <QDir>
#include <QFile>
#include <QIcon>
#include <QQmlEngine>
#include <QQmlExpression>
#include <QQmlProperty>
@ -32,7 +33,6 @@
#include <KDebug>
#include <KGlobalSettings>
#include <KIcon>
#include <KService>
#include <KServiceTypeTrader>
@ -297,7 +297,7 @@ void AppletInterface::setAction(const QString &name, const QString &text, const
}
if (!icon.isEmpty()) {
action->setIcon(KIcon(icon));
action->setIcon(QIcon::fromTheme(icon));
}
if (!shortcut.isEmpty()) {