}
-void ModuleBase_WidgetCheckGroupBox::placePageWidget(ModuleBase_PageBase* theWidget)
+void ModuleBase_WidgetCheckGroupBox::placeWidget(QWidget* theWidget)
{
- QWidget* aWidget = dynamic_cast<QWidget*>(theWidget);
- if (!aWidget) {
+ if (!theWidget) {
#ifdef _DEBUG
std::cout << "ModuleBase_PageGroupBox::placePageWidget: can not cast page" << std::endl;
#endif
}
const int kCol = 0;
const int kRow = myMainLayout->count();
- myMainLayout->addWidget(aWidget, kRow, kCol);
+ myMainLayout->addWidget(theWidget, kRow, kCol);
myMainLayout->setRowStretch(kRow, 0);
}
return myMainLayout;
}
-bool ModuleBase_WidgetCheckGroupBox::storeValueCustom() const
+bool ModuleBase_WidgetCheckGroupBox::storeValueCustom()
{
DataPtr aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeBoolean> aBool = aData->boolean(attributeID());