#include <ModelAPI_AttributeString.h>
#include <QWidget>
-#include <Qlist>
+#include <QList>
#include <QVBoxLayout>
int ModuleBase_PagedContainer::addPage(ModuleBase_PageBase* thePage,
const QString& theName, const QString& theCaseId)
{
+ if (!myPages.count()) {
+ setDefaultValue(theCaseId.toStdString());
+ }
myCaseIds << theCaseId;
myPages << thePage;
+
return myPages.count();
}
AttributeStringPtr aStringAttr = aData->string(attributeID());
QString aWidgetValue = myCaseIds.at(currentPageIndex());
aStringAttr->setValue(aWidgetValue.toStdString());
+ updateObject(myFeature); // for preview
return true;
}