| 99 | } |
| 100 | |
| 101 | void LaunchConfiguration::setType(const QString& typeId) |
| 102 | { |
| 103 | Q_D(LaunchConfiguration); |
| 104 | |
| 105 | LaunchConfigurationType* t = Core::self()->runControllerInternal()->launchConfigurationTypeForId( typeId ); |
| 106 | // If this ever happens something seriously screwed in the launch config dialog, as that is |
| 107 | // the only place from where this method should be called |
| 108 | Q_ASSERT(t); |
| 109 | if( t ) |
| 110 | { |
| 111 | d->baseGroup.deleteGroup(QStringLiteral("Data")); |
| 112 | d->type = t; |
| 113 | d->baseGroup.writeEntry(LaunchConfigurationTypeEntry(), d->type->id()); |
| 114 | d->baseGroup.sync(); |
| 115 | emit typeChanged( t ); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | void LaunchConfiguration::save() |
| 120 | { |
no test coverage detected