X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetDoubleValue.h;h=70f6de58ce510344ae127d927bd18313b9a0c578;hb=a8d0fddcc65db1fe234df36354b6735918075a70;hp=caab1955678fb6350606ba9f138f2afb33574aac;hpb=aee13db814508b4899bf67f4530d4831c0ddc499;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetDoubleValue.h b/src/ModuleBase/ModuleBase_WidgetDoubleValue.h index caab19556..70f6de58c 100644 --- 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 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;