const std::string& theType,
QWidget* theParent,
Config_WidgetAPI* theWidgetApi,
- ModuleBase_IWorkshop* /*theWorkshop*/)
+ ModuleBase_IWorkshop* theWorkshop)
{
ModuleBase_ModelWidget* aWidget = 0;
if (myPanelTypes.find(theType) == myPanelTypes.end())
return aWidget;
- if (theType == "field-panel") {
- aWidget = new CollectionPlugin_WidgetField(theParent, theWidgetApi);
+ if (theType == "field-panel") {
+ aWidget = new CollectionPlugin_WidgetField(theParent, theWorkshop, theWidgetApi);
}
return aWidget;