Salome HOME
Init feature by model widget factory content
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetDoubleValue.h
index caab1955678fb6350606ba9f138f2afb33574aac..70f6de58ce510344ae127d927bd18313b9a0c578 100644 (file)
@@ -12,12 +12,14 @@ class Config_WidgetAPI;
 class QWidget;
 class QLabel;
 class QDoubleSpinBox;
-class QCheckBox;
 
 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();
@@ -36,9 +38,12 @@ public:
   /// \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:
-  std::string myAttributeID;
-  
   QWidget*     myContainer;
   QLabel*      myLabel;
   QDoubleSpinBox* mySpinBox;