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 #219 Clear selected list if selection type changed
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetFeature.cpp
diff --git
a/src/ModuleBase/ModuleBase_WidgetFeature.cpp
b/src/ModuleBase/ModuleBase_WidgetFeature.cpp
index 22b6c316f48f1435c13d2a3a143468105f7eda11..faf664fe53e9d48180ac7323988e5be4e256808f 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetFeature.cpp
+++ b/
src/ModuleBase/ModuleBase_WidgetFeature.cpp
@@
-6,6
+6,7
@@
#include <ModuleBase_WidgetValueFeature.h>
#include <ModuleBase_WidgetValue.h>
#include <ModuleBase_WidgetValueFeature.h>
#include <ModuleBase_WidgetValue.h>
+#include <ModuleBase_Tools.h>
#include <Config_Keywords.h>
#include <Config_WidgetAPI.h>
#include <Config_Keywords.h>
#include <Config_WidgetAPI.h>
@@
-20,6
+21,7
@@
#include <ModelAPI_Validator.h>
#include <ModelAPI_ResultValidator.h>
#include <ModelAPI_RefAttrValidator.h>
#include <ModelAPI_Validator.h>
#include <ModelAPI_ResultValidator.h>
#include <ModelAPI_RefAttrValidator.h>
+#include <ModelAPI_Session.h>
#include <QWidget>
#include <QLineEdit>
#include <QWidget>
#include <QLineEdit>
@@
-33,7
+35,7
@@
ModuleBase_WidgetFeature::ModuleBase_WidgetFeature(QWidget* theParent,
{
myContainer = new QWidget(theParent);
QHBoxLayout* aControlLay = new QHBoxLayout(myContainer);
{
myContainer = new QWidget(theParent);
QHBoxLayout* aControlLay = new QHBoxLayout(myContainer);
-
aControlLay->setContentsMargins(0, 0, 0, 0
);
+
ModuleBase_Tools::adjustMargins(aControlLay
);
QString aLabelText = QString::fromStdString(theData->widgetLabel());
myLabel = new QLabel(aLabelText, myContainer);
QString aLabelText = QString::fromStdString(theData->widgetLabel());
myLabel = new QLabel(aLabelText, myContainer);
@@
-43,7
+45,6
@@
ModuleBase_WidgetFeature::ModuleBase_WidgetFeature(QWidget* theParent,
QString anObjName = QString::fromStdString(attributeID());
myEditor->setObjectName(anObjName);
myEditor->setReadOnly(true);
QString anObjName = QString::fromStdString(attributeID());
myEditor->setObjectName(anObjName);
myEditor->setReadOnly(true);
- processFocus(myEditor);
aControlLay->addWidget(myEditor);
QString aTTip = QString::fromStdString(theData->widgetTooltip());
aControlLay->addWidget(myEditor);
QString aTTip = QString::fromStdString(theData->widgetTooltip());