#include "SALOMEDSClient_ClientFactory.hxx"
#include CORBA_SERVER_HEADER(SALOMEDS)
+#include <QKeyEvent>
#include <QLineEdit>
/*!
return false;
}
+/*!
+ \brief This function is called when the spinbox recieves key press event.
+*/
+void SalomeApp_DoubleSpinBox::keyPressEvent( QKeyEvent* e )
+{
+ if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter )
+ QWidget::keyPressEvent( e );
+ else
+ QtxDoubleSpinBox::keyPressEvent( e );
+}
+
/*!
\brief This function is called when the spinbox recieves show event.
*/
bool findVariable( const QString&, double& ) const;
- protected:
+protected:
+ virtual void keyPressEvent( QKeyEvent* );
virtual void showEvent( QShowEvent* );
protected slots:
#include "SALOMEDSClient_ClientFactory.hxx"
#include CORBA_SERVER_HEADER(SALOMEDS)
+#include <QKeyEvent>
#include <QLineEdit>
/*!
return false;
}
+/*!
+ \brief This function is called when the spinbox recieves key press event.
+*/
+void SalomeApp_IntSpinBox::keyPressEvent( QKeyEvent* e )
+{
+ if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter )
+ QWidget::keyPressEvent( e );
+ else
+ QtxIntSpinBox::keyPressEvent( e );
+}
+
/*!
\brief This function is called when the spinbox recieves show event.
*/
bool findVariable( const QString&, int& ) const;
protected:
+ virtual void keyPressEvent( QKeyEvent* );
virtual void showEvent( QShowEvent* );
protected slots: