Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compilation on Linux
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetCheckGroupBox.cpp
diff --git
a/src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp
b/src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp
index 89d9356b9383908cf9f09eee98e71c51c0b2cd07..11626948590b3661591766cb89230a94f2fb7638 100755
(executable)
--- a/
src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp
+++ b/
src/ModuleBase/ModuleBase_WidgetCheckGroupBox.cpp
@@
-18,9
+18,8
@@
#include <QList>
ModuleBase_WidgetCheckGroupBox::ModuleBase_WidgetCheckGroupBox(QWidget* theParent,
#include <QList>
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());
ModuleBase_PageBase()
{
QString aToolTip = QString::fromStdString(theData->widgetTooltip());
@@
-85,10
+84,9
@@
void ModuleBase_WidgetCheckGroupBox::placeModelWidget(ModuleBase_ModelWidget* th
}
}
-void ModuleBase_WidgetCheckGroupBox::place
PageWidget(ModuleBase_PageBase
* theWidget)
+void ModuleBase_WidgetCheckGroupBox::place
Widget(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
#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();
}
const int kCol = 0;
const int kRow = myMainLayout->count();
- myMainLayout->addWidget(
a
Widget, kRow, kCol);
+ myMainLayout->addWidget(
the
Widget, kRow, kCol);
myMainLayout->setRowStretch(kRow, 0);
}
myMainLayout->setRowStretch(kRow, 0);
}
@@
-105,7
+103,7
@@
QLayout* ModuleBase_WidgetCheckGroupBox::pageLayout()
return myMainLayout;
}
return myMainLayout;
}
-bool ModuleBase_WidgetCheckGroupBox::storeValueCustom()
const
+bool ModuleBase_WidgetCheckGroupBox::storeValueCustom()
{
DataPtr aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeBoolean> aBool = aData->boolean(attributeID());
{
DataPtr aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeBoolean> aBool = aData->boolean(attributeID());