mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
PAL8238, remarks: if user switch to other cell by keyboard or by mouse click, the all contents of editor must be selected.
This commit is contained in:
parent
c7783fc7d8
commit
1e92e82bb3
@ -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() )
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user