Commit 3c2725a6 authored by Kevin Funk's avatar Kevin Funk

[Sessions Runner] Use icon name

Summary: We just show a static themed icon name

Reviewers: #kdevelop, kfunk

Reviewed By: #kdevelop, kfunk

Subscribers: kdevelop-devel

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D19159
parent e2b2fd2c
......@@ -25,7 +25,6 @@
#include <QDebug>
#include <QIcon>
#include <QFile>
#include <KDirWatch>
#include <KToolInvocation>
......@@ -46,7 +45,6 @@ KDevelopSessions::KDevelopSessions(QObject *parent, const QVariantList& args)
{
setObjectName(QStringLiteral("KDevelop Sessions"));
setIgnoredTypes(Plasma::RunnerContext::File | Plasma::RunnerContext::Directory | Plasma::RunnerContext::NetworkLocation);
m_icon = QIcon::fromTheme(QStringLiteral("kdevelop"));
loadSessions();
......@@ -158,7 +156,7 @@ void KDevelopSessions::match(Plasma::RunnerContext &context)
match.setRelevance(0.8);
}
}
match.setIcon(m_icon);
match.setIconName(QStringLiteral("kdevelop"));
match.setData(session.id);
match.setText(session.name);
match.setSubtext(i18n("Open KDevelop Session"));
......
......@@ -22,8 +22,6 @@
#include <KRunner/AbstractRunner>
#include <QIcon>
struct Session
{
QString id;
......@@ -46,7 +44,6 @@ class KDevelopSessions : public Plasma::AbstractRunner {
void loadSessions();
private:
QIcon m_icon;
QVector<Session> m_sessions;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment