Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/runnermatchesmodel.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
70 | } else if (role == Kicker::UrlRole) { | 70 | } else if (role == Kicker::UrlRole) { | ||
71 | const QString &runnerId = match.runner()->id(); | 71 | const QString &runnerId = match.runner()->id(); | ||
72 | if (runnerId == QLatin1String("baloosearch") || runnerId == QLatin1String("bookmarks")) { | 72 | if (runnerId == QLatin1String("baloosearch") || runnerId == QLatin1String("bookmarks")) { | ||
73 | return QUrl(match.data().toString()); | 73 | return QUrl(match.data().toString()); | ||
74 | } else if (runnerId == QLatin1String("recentdocuments") | 74 | } else if (runnerId == QLatin1String("recentdocuments") | ||
75 | || runnerId == QLatin1String("services")) { | 75 | || runnerId == QLatin1String("services")) { | ||
76 | KService::Ptr service = KService::serviceByStorageId(match.data().toString()); | 76 | KService::Ptr service = KService::serviceByStorageId(match.data().toString()); | ||
77 | if (service) { | 77 | if (service) { | ||
78 | return QUrl::fromLocalFile(service->entryPath()); | 78 | return QUrl::fromLocalFile(Kicker::resolvedServiceEntryPath(service)); | ||
79 | } | 79 | } | ||
80 | } | 80 | } | ||
81 | } else if (role == Kicker::HasActionListRole) { | 81 | } else if (role == Kicker::HasActionListRole) { | ||
82 | // Hack to expose the protected Plasma::AbstractRunner::actions() method. | 82 | // Hack to expose the protected Plasma::AbstractRunner::actions() method. | ||
83 | class MyRunner : public Plasma::AbstractRunner | 83 | class MyRunner : public Plasma::AbstractRunner | ||
84 | { | 84 | { | ||
85 | public: | 85 | public: | ||
86 | using Plasma::AbstractRunner::actions; | 86 | using Plasma::AbstractRunner::actions; | ||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |