]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL8238, remarks: if user switch to other cell by keyboard or by mouse click, the...
authorasl <asl@opencascade.com>
Fri, 30 Dec 2005 12:32:05 +0000 (12:32 +0000)
committerasl <asl@opencascade.com>
Fri, 30 Dec 2005 12:32:05 +0000 (12:32 +0000)
src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx
src/StdMeshersGUI/StdMeshersGUI_DistrTable.h

index a68b6c9c71ad5b4239604b66a3946b4708b9e50d..31eeae6fe03d1f32d4ef788aba96e16443d34ba5 100644 (file)
@@ -71,6 +71,14 @@ void StdMeshersGUI_DistrTable::stopEditing( const bool accept )
   endEdit( currEditRow(), currEditCol(), accept, false );
 }
 
+QWidget* StdMeshersGUI_DistrTable::beginEdit( int row, int col, bool replace )
+{
+  QWidget* w = QTable::beginEdit( row, col, replace );
+  if( w && w->inherits( "QLineEdit" ) )
+    ( ( QLineEdit* )w )->selectAll();
+  return w;
+}
+
 void StdMeshersGUI_DistrTable::edit( const int r, const int c )
 {
   if( isEditing() )
index c3597dfe2df7a568bd636be59e3c1ad8f8bae1d9..a6f7f6106c3f9a075a7eeae70a09c511438d9ac0 100644 (file)
@@ -72,6 +72,7 @@ protected:
   virtual QWidget* createEditor( int, int, bool ) const;
   virtual bool     eventFilter( QObject*, QEvent* );
   virtual void     keyPressEvent( QKeyEvent* );
+  virtual QWidget* beginEdit( int row, int col, bool replace );
   virtual void     edit( const int, const int );
 
 private slots: