Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/runnermatchesmodel.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 47 | { | |||
---|---|---|---|---|---|
62 | } else if (role == Kicker::DescriptionRole) { | 62 | } else if (role == Kicker::DescriptionRole) { | ||
63 | return match.subtext(); | 63 | return match.subtext(); | ||
64 | } else if (role == Kicker::FavoriteIdRole) { | 64 | } else if (role == Kicker::FavoriteIdRole) { | ||
65 | if (match.runner()->id() == "services") { | 65 | if (match.runner()->id() == "services") { | ||
66 | return match.data().toString(); | 66 | return match.data().toString(); | ||
67 | } | 67 | } | ||
68 | } else if (role == Kicker::UrlRole) { | 68 | } else if (role == Kicker::UrlRole) { | ||
69 | const QString &runnerId = match.runner()->id(); | 69 | const QString &runnerId = match.runner()->id(); | ||
70 | if (runnerId == QLatin1String("baloosearch")) { | 70 | if (runnerId == QLatin1String("baloosearch") || runnerId == QLatin1String("bookmarks")) { | ||
71 | return QUrl(match.data().toString()); | 71 | return QUrl(match.data().toString()); | ||
72 | } else if (runnerId == QLatin1String("recentdocuments") | 72 | } else if (runnerId == QLatin1String("recentdocuments") | ||
73 | || runnerId == QLatin1String("services")) { | 73 | || runnerId == QLatin1String("services")) { | ||
74 | KService::Ptr service = KService::serviceByStorageId(match.data().toString()); | 74 | KService::Ptr service = KService::serviceByStorageId(match.data().toString()); | ||
75 | if (service) { | 75 | if (service) { | ||
76 | return QUrl::fromLocalFile(service->entryPath()); | 76 | return QUrl::fromLocalFile(service->entryPath()); | ||
77 | } | 77 | } | ||
78 | } | 78 | } | ||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |