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
Init feature by model widget factory content
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetDoubleValue.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetDoubleValue.h
b/src/ModuleBase/ModuleBase_WidgetDoubleValue.h
index caab1955678fb6350606ba9f138f2afb33574aac..70f6de58ce510344ae127d927bd18313b9a0c578 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetDoubleValue.h
+++ b/
src/ModuleBase/ModuleBase_WidgetDoubleValue.h
@@
-12,12
+12,14
@@
class Config_WidgetAPI;
class QWidget;
class QLabel;
class QDoubleSpinBox;
class QWidget;
class QLabel;
class QDoubleSpinBox;
-class QCheckBox;
class MODULEBASE_EXPORT ModuleBase_WidgetDoubleValue: public ModuleBase_ModelWidget
{
Q_OBJECT
public:
class MODULEBASE_EXPORT ModuleBase_WidgetDoubleValue: public ModuleBase_ModelWidget
{
Q_OBJECT
public:
+ /// Constructor
+ /// \theParent the parent object
+ /// \theData the widget configuation. The attribute of the model widget is obtained from
ModuleBase_WidgetDoubleValue(QWidget* theParent, const Config_WidgetAPI* theData);
virtual ~ModuleBase_WidgetDoubleValue();
ModuleBase_WidgetDoubleValue(QWidget* theParent, const Config_WidgetAPI* theData);
virtual ~ModuleBase_WidgetDoubleValue();
@@
-36,9
+38,12
@@
public:
/// \returns the widget
QWidget* getControl() const { return myContainer; }
/// \returns the widget
QWidget* getControl() const { return myContainer; }
+ /// Process key release envent on the widget spin box controls
+ /// \param theObject the object where the event happens
+ /// \param theEvent the processed event
+ virtual bool eventFilter(QObject *theObject, QEvent *theEvent);
+
private:
private:
- std::string myAttributeID;
-
QWidget* myContainer;
QLabel* myLabel;
QDoubleSpinBox* mySpinBox;
QWidget* myContainer;
QLabel* myLabel;
QDoubleSpinBox* mySpinBox;