X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetCheckGroupBox.cpp;h=cee0ff9872170b0ddfcf00076a1dfc57b8dbc1ed;hb=1490e92974d2c0bdcdbecd6fa9388e31dccfa363;hp=89d9356b9383908cf9f09eee98e71c51c0b2cd07;hpb=31c4ff77330b870d466fbd6b38e1fa566600f79a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp b/src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp index 89d9356b9..cee0ff987 100755 --- a/src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp +++ b/src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp @@ -18,9 +18,8 @@ #include ModuleBase_WidgetCheckGroupBox::ModuleBase_WidgetCheckGroupBox(QWidget* theParent, - const Config_WidgetAPI* theData, - const std::string& theParentId) -: ModuleBase_ModelWidget(theParent, theData, theParentId), + const Config_WidgetAPI* theData) +: ModuleBase_ModelWidget(theParent, theData), ModuleBase_PageBase() { QString aToolTip = QString::fromStdString(theData->widgetTooltip()); @@ -85,10 +84,9 @@ void ModuleBase_WidgetCheckGroupBox::placeModelWidget(ModuleBase_ModelWidget* th } -void ModuleBase_WidgetCheckGroupBox::placePageWidget(ModuleBase_PageBase* theWidget) +void ModuleBase_WidgetCheckGroupBox::placeWidget(QWidget* theWidget) { - QWidget* aWidget = dynamic_cast(theWidget); - if (!aWidget) { + if (!theWidget) { #ifdef _DEBUG std::cout << "ModuleBase_PageGroupBox::placePageWidget: can not cast page" << std::endl; #endif @@ -96,7 +94,7 @@ void ModuleBase_WidgetCheckGroupBox::placePageWidget(ModuleBase_PageBase* theWid } const int kCol = 0; const int kRow = myMainLayout->count(); - myMainLayout->addWidget(aWidget, kRow, kCol); + myMainLayout->addWidget(theWidget, kRow, kCol); myMainLayout->setRowStretch(kRow, 0); }