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

Method addLaunchConfiguration

kdevplatform/shell/runcontroller.cpp:878–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878void KDevelop::RunController::addLaunchConfiguration(KDevelop::LaunchConfiguration* l)
879{
880 Q_D(RunController);
881
882 if( !d->launchConfigurations.contains( l ) )
883 {
884 d->addLaunchAction( l );
885 d->launchConfigurations << l;
886 if( !d->currentTargetAction->currentAction() )
887 {
888 if( !d->currentTargetAction->actions().isEmpty() )
889 {
890 d->currentTargetAction->actions().at(0)->setChecked( true );
891 }
892 }
893 connect( l, &LaunchConfiguration::nameChanged, this, &RunController::launchChanged );
894 }
895}
896
897void KDevelop::RunController::removeLaunchConfiguration(KDevelop::LaunchConfiguration* l)
898{

Callers 2

Calls 6

addLaunchActionMethod · 0.80
currentActionMethod · 0.80
containsMethod · 0.45
isEmptyMethod · 0.45
actionsMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected