| 968 | } |
| 969 | |
| 970 | void LaunchConfigurationModelDelegate::setEditorData ( QWidget* editor, const QModelIndex& index ) const |
| 971 | { |
| 972 | const auto* model = static_cast<const LaunchConfigurationsModel*>(index.model()); |
| 973 | LaunchConfiguration* config = model->configForIndex( index ); |
| 974 | if( index.column() == 1 && config ) |
| 975 | { |
| 976 | auto* box = qobject_cast<KComboBox*>( editor ); |
| 977 | box->setCurrentIndex( box->findData( index.data( Qt::EditRole ) ) ); |
| 978 | } |
| 979 | else |
| 980 | { |
| 981 | QStyledItemDelegate::setEditorData ( editor, index ); |
| 982 | } |
| 983 | } |
| 984 | |
| 985 | void LaunchConfigurationModelDelegate::setModelData ( QWidget* editor, QAbstractItemModel* model, const QModelIndex& index ) const |
| 986 | { |
nothing calls this directly
no test coverage detected