| 292 | } |
| 293 | |
| 294 | void PlasmoidExecutionConfigType::suggestionTriggered() |
| 295 | { |
| 296 | auto* action = qobject_cast<QAction*>(sender()); |
| 297 | auto* p = action->property("project").value<KDevelop::IProject*>(); |
| 298 | QString relUrl = action->property("url").toString(); |
| 299 | |
| 300 | KDevelop::ILauncher* launcherInstance = launchers().at( 0 ); |
| 301 | QPair<QString,QString> launcher = qMakePair( launcherInstance->supportedModes().at(0), launcherInstance->id() ); |
| 302 | |
| 303 | QString name = relUrl.mid(relUrl.lastIndexOf(QLatin1Char('/'))+1); |
| 304 | KDevelop::ILaunchConfiguration* config = KDevelop::ICore::self()->runController()->createLaunchConfiguration(this, launcher, p, name); |
| 305 | KConfigGroup cfg = config->config(); |
| 306 | cfg.writeEntry("PlasmoidIdentifier", relUrl); |
| 307 | emit signalAddLaunchConfiguration(config); |
| 308 | } |
| 309 | |
| 310 | #include "moc_plasmoidexecutionconfig.cpp" |
nothing calls this directly
no test coverage detected