From 481b8e1b80231c6cf1b8a6fe6146e2d8b034cbb7 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 18 Nov 2008 11:00:00 +0000 Subject: [PATCH] Dump Python extension --- src/SalomeApp/SalomeApp_DoubleSpinBox.cxx | 8 ++++++++ src/SalomeApp/SalomeApp_DoubleSpinBox.h | 3 +++ src/SalomeApp/SalomeApp_IntSpinBox.cxx | 8 ++++++++ src/SalomeApp/SalomeApp_IntSpinBox.h | 3 +++ 4 files changed, 22 insertions(+) diff --git a/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx b/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx index 8049824d3..16557cc30 100644 --- a/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx +++ b/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx @@ -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 ); +} diff --git a/src/SalomeApp/SalomeApp_DoubleSpinBox.h b/src/SalomeApp/SalomeApp_DoubleSpinBox.h index 0827e01d1..ad9a1895a 100644 --- a/src/SalomeApp/SalomeApp_DoubleSpinBox.h +++ b/src/SalomeApp/SalomeApp_DoubleSpinBox.h @@ -62,6 +62,9 @@ protected: bool findVariable( const QString&, double& ) const; +protected: + virtual void showEvent( QShowEvent* ); + protected slots: void onEditingFinished(); void onTextChanged( const QString& ); diff --git a/src/SalomeApp/SalomeApp_IntSpinBox.cxx b/src/SalomeApp/SalomeApp_IntSpinBox.cxx index 8bcb370c3..57f7184ca 100644 --- a/src/SalomeApp/SalomeApp_IntSpinBox.cxx +++ b/src/SalomeApp/SalomeApp_IntSpinBox.cxx @@ -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 ); +} diff --git a/src/SalomeApp/SalomeApp_IntSpinBox.h b/src/SalomeApp/SalomeApp_IntSpinBox.h index e894884c1..47de2da9f 100644 --- a/src/SalomeApp/SalomeApp_IntSpinBox.h +++ b/src/SalomeApp/SalomeApp_IntSpinBox.h @@ -60,6 +60,9 @@ protected: bool findVariable( const QString&, int& ) const; +protected: + virtual void showEvent( QShowEvent* ); + protected slots: void onEditingFinished(); void onTextChanged( const QString& ); -- 2.39.2