KDE::icon becomes QIcon::fromTheme
This commit is contained in:
parent
9e9b080392
commit
b1ce94159d
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -198,21 +198,21 @@ KActionCollection* AppletPrivate::defaultActions(QObject *parent)
|
||||
KAction *configAction = actions->add<KAction>("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<KAction>("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<KAction>("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);
|
||||
|
@ -67,7 +67,7 @@ void ContainmentPrivate::addDefaultActions(KActionCollection *actions, Containme
|
||||
KAction *appletBrowserAction = actions->add<KAction>("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);
|
||||
}
|
||||
|
@ -300,3 +300,4 @@ class PLASMA_EXPORT RunnerManager : public QObject
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user