| 983 | } |
| 984 | |
| 985 | void LaunchConfigurationModelDelegate::setModelData ( QWidget* editor, QAbstractItemModel* model, const QModelIndex& index ) const |
| 986 | { |
| 987 | auto* lmodel = static_cast<LaunchConfigurationsModel*>(model); |
| 988 | LaunchConfiguration* config = lmodel->configForIndex( index ); |
| 989 | if( index.column() == 1 && config ) |
| 990 | { |
| 991 | auto* box = qobject_cast<KComboBox*>( editor ); |
| 992 | lmodel->setData( index, box->itemData( box->currentIndex() ) ); |
| 993 | } |
| 994 | else |
| 995 | { |
| 996 | QStyledItemDelegate::setModelData ( editor, model, index ); |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | void LaunchConfigurationDialog::launchModeChanged(int item) |
| 1001 | { |
nothing calls this directly
no test coverage detected