X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetDoubleValue.h;h=20afafbe18f9862e7a43b15c0287660334f79ed7;hb=fc6da0810f1fa783b09e5a41f11dfb43ba9c7e02;hp=6c819866e8575bd6f2bbc6164c4293deca7f53d2;hpb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetDoubleValue.h b/src/ModuleBase/ModuleBase_WidgetDoubleValue.h index 6c819866e..20afafbe1 100644 --- a/src/ModuleBase/ModuleBase_WidgetDoubleValue.h +++ b/src/ModuleBase/ModuleBase_WidgetDoubleValue.h @@ -8,10 +8,11 @@ #include "ModuleBase.h" #include "ModuleBase_ModelWidget.h" +class ModuleBase_DoubleSpinBox; class Config_WidgetAPI; class QWidget; class QLabel; -class QDoubleSpinBox; +class QTimer; class MODULEBASE_EXPORT ModuleBase_WidgetDoubleValue : public ModuleBase_ModelWidget { @@ -42,15 +43,15 @@ Q_OBJECT 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); + public slots: + /// Delayed value chnged: when user starts typing something, + // it gives him a 0,5 second to finish typing, when sends valueChnaged() signal +// void onValueChanged(); protected: QWidget* myContainer; QLabel* myLabel; - QDoubleSpinBox* mySpinBox; + ModuleBase_DoubleSpinBox* mySpinBox; }; #endif