| 496 | } |
| 497 | |
| 498 | void LaunchConfigurationsModel::addItemForLaunchConfig( LaunchConfiguration* l ) |
| 499 | { |
| 500 | auto* t = new LaunchItem; |
| 501 | t->launch = l; |
| 502 | TreeItem* parent; |
| 503 | if( l->project() ) { |
| 504 | parent = findItemForProject( l->project() ); |
| 505 | } else { |
| 506 | parent = topItems.at(0); |
| 507 | } |
| 508 | t->parent = parent; |
| 509 | t->row = parent->children.count(); |
| 510 | parent->children.append( t ); |
| 511 | addLaunchModeItemsForLaunchConfig ( t ); |
| 512 | } |
| 513 | |
| 514 | void LaunchConfigurationsModel::addLaunchModeItemsForLaunchConfig ( LaunchItem* t ) |
| 515 | { |