| 442 | } |
| 443 | |
| 444 | void 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 | |
| 462 | void LaunchConfigurationDialog::addConfiguration(ILaunchConfiguration* _launch) |
| 463 | { |
nothing calls this directly
no test coverage detected