MCPcopy Create free account
hub / github.com/KDE/kdevelop / createEmptyLauncher

Method createEmptyLauncher

kdevplatform/shell/launchconfigurationdialog.cpp:227–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void LaunchConfigurationDialog::createEmptyLauncher()
228{
229 auto* action = qobject_cast<QAction*>(sender());
230 Q_ASSERT(action);
231
232 auto* type = qobject_cast<LaunchConfigurationType*>(action->property("configtype").value<QObject*>());
233 Q_ASSERT(type);
234
235 IProject* p = model->projectForIndex(tree->currentIndex());
236 QPair< QString, QString > launcher( type->launchers().at( 0 )->supportedModes().at(0), type->launchers().at( 0 )->id() );
237 ILaunchConfiguration* l = ICore::self()->runController()->createLaunchConfiguration(type, launcher, p);
238 addConfiguration(l);
239}
240
241void LaunchConfigurationDialog::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected)
242{

Callers

nothing calls this directly

Calls 9

propertyMethod · 0.80
projectForIndexMethod · 0.80
launchersMethod · 0.80
runControllerMethod · 0.80
currentIndexMethod · 0.45
atMethod · 0.45
supportedModesMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected