diff --git a/src/plasma/abstractrunner.cpp b/src/plasma/abstractrunner.cpp index ad9b18024..518591695 100644 --- a/src/plasma/abstractrunner.cpp +++ b/src/plasma/abstractrunner.cpp @@ -298,7 +298,7 @@ QString AbstractRunner::name() const QIcon AbstractRunner::icon() const { if (d->runnerDescription.isValid()) { - return KDE::icon(d->runnerDescription.icon()); + return QIcon::fromTheme(d->runnerDescription.icon()); } return QIcon(); diff --git a/src/plasma/corona.cpp b/src/plasma/corona.cpp index 09da4ac2e..65d54656a 100644 --- a/src/plasma/corona.cpp +++ b/src/plasma/corona.cpp @@ -241,7 +241,7 @@ void Corona::setImmutability(const ImmutabilityType immutable) } else { bool unlocked = d->immutability == Mutable; action->setText(unlocked ? i18n("Lock Widgets") : i18n("Unlock Widgets")); - action->setIcon(KDE::icon(unlocked ? "object-locked" : "object-unlocked")); + action->setIcon(QIcon::fromTheme(unlocked ? "object-locked" : "object-unlocked")); action->setEnabled(true); action->setVisible(true); } @@ -316,7 +316,7 @@ void CoronaPrivate::init() QObject::connect(lockAction, SIGNAL(triggered(bool)), q, SLOT(toggleImmutability())); lockAction->setText(i18n("Lock Widgets")); lockAction->setAutoRepeat(true); - lockAction->setIcon(KDE::icon("object-locked")); + lockAction->setIcon(QIcon::fromTheme("object-locked")); lockAction->setData(Plasma::ControlAction); lockAction->setShortcut(KShortcut("alt+d, l")); lockAction->setShortcutContext(Qt::ApplicationShortcut); diff --git a/src/plasma/private/applet_p.cpp b/src/plasma/private/applet_p.cpp index 298470ce8..5c2e59971 100644 --- a/src/plasma/private/applet_p.cpp +++ b/src/plasma/private/applet_p.cpp @@ -198,21 +198,21 @@ KActionCollection* AppletPrivate::defaultActions(QObject *parent) KAction *configAction = actions->add("configure"); configAction->setAutoRepeat(false); configAction->setText(i18n("Widget Settings")); - configAction->setIcon(KDE::icon("configure")); + configAction->setIcon(QIcon::fromTheme("configure")); configAction->setShortcut(KShortcut("alt+d, s")); configAction->setData(Plasma::ConfigureAction); KAction *closeApplet = actions->add("remove"); closeApplet->setAutoRepeat(false); closeApplet->setText(i18n("Remove this Widget")); - closeApplet->setIcon(KDE::icon("edit-delete")); + closeApplet->setIcon(QIcon::fromTheme("edit-delete")); closeApplet->setShortcut(KShortcut("alt+d, r")); closeApplet->setData(Plasma::DestructiveAction); KAction *runAssociatedApplication = actions->add("run associated application"); runAssociatedApplication->setAutoRepeat(false); runAssociatedApplication->setText(i18n("Run the Associated Application")); - runAssociatedApplication->setIcon(KDE::icon("system-run")); + runAssociatedApplication->setIcon(QIcon::fromTheme("system-run")); runAssociatedApplication->setShortcut(KShortcut("alt+d, t")); runAssociatedApplication->setVisible(false); runAssociatedApplication->setEnabled(false); diff --git a/src/plasma/private/containment_p.cpp b/src/plasma/private/containment_p.cpp index 18c139fe3..df16630e4 100644 --- a/src/plasma/private/containment_p.cpp +++ b/src/plasma/private/containment_p.cpp @@ -67,7 +67,7 @@ void ContainmentPrivate::addDefaultActions(KActionCollection *actions, Containme KAction *appletBrowserAction = actions->add("add widgets"); appletBrowserAction->setAutoRepeat(false); appletBrowserAction->setText(i18n("Add Widgets...")); - appletBrowserAction->setIcon(KDE::icon("list-add")); + appletBrowserAction->setIcon(QIcon::fromTheme("list-add")); appletBrowserAction->setShortcut(KShortcut("alt+d, a")); appletBrowserAction->setData(Plasma::AddAction); } diff --git a/src/plasma/runnermanager.h b/src/plasma/runnermanager.h index 382f76a50..c29bf805e 100644 --- a/src/plasma/runnermanager.h +++ b/src/plasma/runnermanager.h @@ -300,3 +300,4 @@ class PLASMA_EXPORT RunnerManager : public QObject } #endif +