Changeset View
Changeset View
Standalone View
Standalone View
activities/fileitemplugin/FileItemLinkingPluginActionLoader.cpp
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 164 | FileItemLinkingPluginActionLoader::createAction(const QString &activity, | |||
---|---|---|---|---|---|
166 | const QString &icon) const | 166 | const QString &icon) const | ||
167 | { | 167 | { | ||
168 | Action action = { }; | 168 | Action action = { }; | ||
169 | action.link = link; | 169 | action.link = link; | ||
170 | 170 | | |||
171 | if (title.isEmpty()) { | 171 | if (title.isEmpty()) { | ||
172 | KActivities::Info activityInfo(activity); | 172 | KActivities::Info activityInfo(activity); | ||
173 | action.title = activityInfo.name(); | 173 | action.title = activityInfo.name(); | ||
174 | action.icon = activityInfo.icon().isEmpty() ? "preferences-activities" | 174 | action.icon = activityInfo.icon().isEmpty() ? "activities" | ||
175 | : activityInfo.icon(); | 175 | : activityInfo.icon(); | ||
176 | 176 | | |||
177 | } else { | 177 | } else { | ||
178 | action.title = title; | 178 | action.title = title; | ||
179 | } | 179 | } | ||
180 | 180 | | |||
181 | if (!icon.isEmpty()) { | 181 | if (!icon.isEmpty()) { | ||
182 | action.icon = icon; | 182 | action.icon = icon; | ||
Show All 17 Lines |