Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/plugin/backend.cpp
Context not available. | |||||
142 | continue; | 142 | continue; | ||
---|---|---|---|---|---|
143 | } | 143 | } | ||
144 | 144 | | |||
145 | QAction *action = new QAction(this); | 145 | QAction *action = new QAction(parent); | ||
146 | action->setText(name); | 146 | action->setText(name); | ||
147 | action->setIcon(QIcon::fromTheme(actionGroup.readEntry("Icon"))); | 147 | action->setIcon(QIcon::fromTheme(actionGroup.readEntry("Icon"))); | ||
148 | action->setProperty("exec", exec); | 148 | action->setProperty("exec", exec); | ||
Context not available. | |||||
204 | continue; | 204 | continue; | ||
205 | } | 205 | } | ||
206 | 206 | | |||
207 | QAction *action = new QAction(this); | 207 | QAction *action = new QAction(parent); | ||
208 | action->setText(url.fileName()); | 208 | action->setText(url.fileName()); | ||
209 | action->setIcon(QIcon::fromTheme(fileItem.iconName(), QIcon::fromTheme("unknown"))); | 209 | action->setIcon(QIcon::fromTheme(fileItem.iconName(), QIcon::fromTheme("unknown"))); | ||
210 | action->setProperty("agent", storageId); | 210 | action->setProperty("agent", storageId); | ||
Context not available. | |||||
219 | } | 219 | } | ||
220 | 220 | | |||
221 | if (actionCount > 0) { | 221 | if (actionCount > 0) { | ||
222 | QAction *action = new QAction(this); | 222 | QAction *action = new QAction(parent); | ||
223 | action->setText(i18n("Forget Recent Documents")); | 223 | action->setText(i18n("Forget Recent Documents")); | ||
224 | action->setProperty("agent", storageId); | 224 | action->setProperty("agent", storageId); | ||
225 | connect(action, &QAction::triggered, this, &Backend::handleRecentDocumentAction); | 225 | connect(action, &QAction::triggered, this, &Backend::handleRecentDocumentAction); | ||
Context not available. |