MCPcopy Create free account
hub / github.com/KDE/kdevelop / setModelData

Method setModelData

kdevplatform/shell/launchconfigurationdialog.cpp:985–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983}
984
985void 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
1000void LaunchConfigurationDialog::launchModeChanged(int item)
1001{

Callers

nothing calls this directly

Calls 5

configForIndexMethod · 0.80
columnMethod · 0.45
setDataMethod · 0.45
itemDataMethod · 0.45
currentIndexMethod · 0.45

Tested by

no test coverage detected