- ComboBoxDelegate *platformDelegate = new ComboBoxDelegate(SetupModel::Setup_PlatformId, plfModel, PlatformModel::EmuFrontFileObject_Id, PlatformModel::EmuFrontFileObject_Name, this);
- objectList->setItemDelegate(platformDelegate);
+ ComboBoxDelegate *platformDelegate = new ComboBoxDelegate(
+ plfModel,
+ PlatformModel::EmuFrontFileObject_Id,
+ PlatformModel::EmuFrontFileObject_Name,
+ this
+ );
+ objectList->setItemDelegateForColumn(SetupModel::Setup_PlatformId, platformDelegate);
+ MediaTypeModel *mdtModel = new MediaTypeModel(this);
+ ComboBoxDelegate *mediatypeDelegate = new ComboBoxDelegate(
+ mdtModel,
+ MediaTypeModel::EmuFrontFileObject_Id,
+ MediaTypeModel::EmuFrontFileObject_Name,
+ this
+ );
+ objectList->setItemDelegateForColumn(SetupModel::Setup_MediaTypeId, mediatypeDelegate);