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
Issue #1854 Recover feature control update
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetBoolValue.cpp
diff --git
a/src/ModuleBase/ModuleBase_WidgetBoolValue.cpp
b/src/ModuleBase/ModuleBase_WidgetBoolValue.cpp
index a019404f5dbf0d5346392a3cc716f229540cf342..b0ff0d2a10343f2a15d929598b7824557acb5f62 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetBoolValue.cpp
+++ b/
src/ModuleBase/ModuleBase_WidgetBoolValue.cpp
@@
-1,6
+1,6
@@
// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-// File: ModuleBase_Widget
s.h
+// File: ModuleBase_Widget
BoolValue.cpp
// Created: 04 June 2014
// Author: Vitaly Smetannikov
// Created: 04 June 2014
// Author: Vitaly Smetannikov
@@
-21,9
+21,8
@@
#include <QCheckBox>
ModuleBase_WidgetBoolValue::ModuleBase_WidgetBoolValue(QWidget* theParent,
#include <QCheckBox>
ModuleBase_WidgetBoolValue::ModuleBase_WidgetBoolValue(QWidget* theParent,
- const Config_WidgetAPI* theData,
- const std::string& theParentId)
- : ModuleBase_ModelWidget(theParent, theData, theParentId)
+ const Config_WidgetAPI* theData)
+: ModuleBase_ModelWidget(theParent, theData)
{
QString aText = QString::fromStdString(theData->widgetLabel());
QString aToolTip = QString::fromStdString(theData->widgetTooltip());
{
QString aText = QString::fromStdString(theData->widgetLabel());
QString aToolTip = QString::fromStdString(theData->widgetTooltip());
@@
-45,7
+44,7
@@
ModuleBase_WidgetBoolValue::~ModuleBase_WidgetBoolValue()
{
}
{
}
-bool ModuleBase_WidgetBoolValue::storeValueCustom()
const
+bool ModuleBase_WidgetBoolValue::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());
@@
-54,7
+53,7
@@
bool ModuleBase_WidgetBoolValue::storeValueCustom() const
return true;
}
return true;
}
-bool ModuleBase_WidgetBoolValue::restoreValue()
+bool ModuleBase_WidgetBoolValue::restoreValue
Custom
()
{
DataPtr aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeBoolean> aRef = aData->boolean(attributeID());
{
DataPtr aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeBoolean> aRef = aData->boolean(attributeID());