]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Dump Python extension
authorouv <ouv@opencascade.com>
Tue, 18 Nov 2008 11:00:00 +0000 (11:00 +0000)
committerouv <ouv@opencascade.com>
Tue, 18 Nov 2008 11:00:00 +0000 (11:00 +0000)
src/SalomeApp/SalomeApp_DoubleSpinBox.cxx
src/SalomeApp/SalomeApp_DoubleSpinBox.h
src/SalomeApp/SalomeApp_IntSpinBox.cxx
src/SalomeApp/SalomeApp_IntSpinBox.h

index 8049824d3ae2c2a0528af4f28a3939a08574cbe7..16557cc3082c499b99e9e0d7f58a2abbacff3d5f 100644 (file)
@@ -316,3 +316,11 @@ bool SalomeApp_DoubleSpinBox::findVariable( const QString& name, double& value )
   }
   return false;
 }
+
+/*!
+  \brief This function is called when the spinbox recieves show event.
+*/
+void SalomeApp_DoubleSpinBox::showEvent( QShowEvent* )
+{
+  setText( myTextValue );
+}
index 0827e01d1d5bf8dec83d2caa13fe3bad41287b1e..ad9a1895ab3008eee2cd9b8eb9b6a6905b396132 100644 (file)
@@ -62,6 +62,9 @@ protected:
 
   bool                      findVariable( const QString&, double& ) const;
 
+protected:
+  virtual void              showEvent( QShowEvent* );
+
 protected slots:
   void                      onEditingFinished();
   void                      onTextChanged( const QString& );
index 8bcb370c36c9d3d39c3e83b4da8bbcc21dc88efe..57f7184ca8a5c6d0eb2d3ea915b6fb7c676cf70c 100644 (file)
@@ -269,3 +269,11 @@ bool SalomeApp_IntSpinBox::findVariable( const QString& name, int& value ) const
   }
   return false;
 }
+
+/*!
+  \brief This function is called when the spinbox recieves show event.
+*/
+void SalomeApp_IntSpinBox::showEvent( QShowEvent* )
+{
+  setText( myTextValue );
+}
index e894884c181605e8a38c327cbf73a795f6d2e51c..47de2da9f4736d9d610c0b2b2c432a1859d1b680 100644 (file)
@@ -60,6 +60,9 @@ protected:
 
   bool                      findVariable( const QString&, int& ) const;
 
+protected:
+  virtual void              showEvent( QShowEvent* );
+
 protected slots:
   void                      onEditingFinished();
   void                      onTextChanged( const QString& );