]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Add signal in the spinbox.
authorrnv <rnv@opencascade.com>
Fri, 21 Nov 2008 16:54:35 +0000 (16:54 +0000)
committerrnv <rnv@opencascade.com>
Fri, 21 Nov 2008 16:54:35 +0000 (16:54 +0000)
src/SalomeApp/SalomeApp_DoubleSpinBox.cxx
src/SalomeApp/SalomeApp_DoubleSpinBox.h
src/SalomeApp/SalomeApp_IntSpinBox.cxx
src/SalomeApp/SalomeApp_IntSpinBox.h

index d6b45f77262daf4b478d207684d781ff60efc5c5..991035e2ad1c70ab816a33a1c37628ac44b8c17c 100644 (file)
@@ -117,6 +117,9 @@ void SalomeApp_DoubleSpinBox::connectSignalsAndSlots()
 
   connect( lineEdit(), SIGNAL( textChanged( const QString& ) ),
           this, SLOT( onTextChanged( const QString& ) ) );
+
+  connect( lineEdit(), SIGNAL( textChanged( const QString& )),
+          this, SIGNAL( textChanged( const QString& ) ) );
 }
 
 /*!
index ad9a1895ab3008eee2cd9b8eb9b6a6905b396132..dcb4e37c0b660329df9f5b0b0ec795bf6c49e523 100644 (file)
@@ -54,6 +54,9 @@ public:
 
   virtual void              setText(const QString& );
 
+signals:
+  void                      textChanged( const QString& );
+
 protected:
   State                     isValid( const QString&, double& ) const;
 
@@ -62,7 +65,7 @@ protected:
 
   bool                      findVariable( const QString&, double& ) const;
 
-protected:
+ protected:
   virtual void              showEvent( QShowEvent* );
 
 protected slots:
index 7ee3391d6f3f847a3f51a579231980133b2bf393..27b91b6dacb168dc702e431102b79053c0319f6e 100644 (file)
@@ -87,6 +87,9 @@ void SalomeApp_IntSpinBox::connectSignalsAndSlots()
 
   connect( lineEdit(), SIGNAL( textChanged( const QString& ) ),
           this, SLOT( onTextChanged( const QString& ) ) );
+
+  connect( lineEdit(), SIGNAL( textChanged( const QString& )),
+          this, SIGNAL( textChanged( const QString& ) ) );
 }
 
 /*!
index 47de2da9f4736d9d610c0b2b2c432a1859d1b680..6eb189736a72c0f35cfb8b859176a30044c81c3a 100644 (file)
@@ -52,6 +52,9 @@ public:
 
   virtual void              setText(const QString& );
 
+signals:
+  void                      textChanged( const QString& );
+
 protected:
   State                     isValid( const QString&, int& ) const;