+ if (aXmlString.length() == 0)
+ addItemRow(this);
+ else {
+ ModuleBase_WidgetFactory aFactory(aXmlString, theParent->workshop());
+ QVBoxLayout* aLayout = new QVBoxLayout(this);
+ ModuleBase_Tools::zeroMargins(aLayout);
+
+ QWidget* aItemRow = new QWidget(this);
+ addItemRow(aItemRow);
+ aLayout->addWidget(aItemRow);
+
+ ModuleBase_PageWidget* aParamsWgt = new ModuleBase_PageWidget(this);
+ aFactory.createWidget(aParamsWgt);
+ ModuleBase_Tools::zeroMargins(aParamsWgt->layout());
+ QList<ModuleBase_ModelWidget*> aWidgets = aFactory.getModelWidgets();
+ foreach(ModuleBase_ModelWidget* aWidget, aWidgets) {
+ aWidget->setFeature(theParent->feature());
+ }
+ aLayout->addWidget(aParamsWgt);
+ }
+}