| 225 | } |
| 226 | |
| 227 | void LaunchConfigurationDialog::createEmptyLauncher() |
| 228 | { |
| 229 | auto* action = qobject_cast<QAction*>(sender()); |
| 230 | Q_ASSERT(action); |
| 231 | |
| 232 | auto* type = qobject_cast<LaunchConfigurationType*>(action->property("configtype").value<QObject*>()); |
| 233 | Q_ASSERT(type); |
| 234 | |
| 235 | IProject* p = model->projectForIndex(tree->currentIndex()); |
| 236 | QPair< QString, QString > launcher( type->launchers().at( 0 )->supportedModes().at(0), type->launchers().at( 0 )->id() ); |
| 237 | ILaunchConfiguration* l = ICore::self()->runController()->createLaunchConfiguration(type, launcher, p); |
| 238 | addConfiguration(l); |
| 239 | } |
| 240 | |
| 241 | void LaunchConfigurationDialog::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) |
| 242 | { |
nothing calls this directly
no test coverage detected