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

Method createConfiguration

kdevplatform/shell/launchconfigurationdialog.cpp:444–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void LaunchConfigurationDialog::createConfiguration()
445{
446 if( !tree->selectionModel()->selectedRows().isEmpty() )
447 {
448 QModelIndex idx = tree->selectionModel()->selectedRows().first();
449 if( idx.parent().isValid() )
450 {
451 idx = idx.parent();
452 }
453 model->createConfiguration( idx );
454 QModelIndex newindex = model->index( model->rowCount( idx ) - 1, 0, idx );
455 tree->selectionModel()->select( newindex, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows );
456 tree->selectionModel()->setCurrentIndex( newindex, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows );
457 tree->edit( newindex );
458 tree->resizeColumnToContents( 0 );
459 }
460}
461
462void LaunchConfigurationDialog::addConfiguration(ILaunchConfiguration* _launch)
463{

Callers

nothing calls this directly

Calls 15

selectMethod · 0.80
setCurrentIndexMethod · 0.80
runControllerMethod · 0.80
launchersMethod · 0.80
isEmptyMethod · 0.45
firstMethod · 0.45
isValidMethod · 0.45
parentMethod · 0.45
indexMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected