mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-13 07:19:48 -05:00
set focus to text edit and pre-select the text on edit
This commit is contained in:
@@ -50,6 +50,7 @@ void editForm::init()
|
||||
curRow = -1;
|
||||
curCol = -1;
|
||||
textEditor->setPlainText("");
|
||||
textEditor->setFocus();
|
||||
setDataType(kSQLiteMediaType_Void, 0);
|
||||
}
|
||||
|
||||
@@ -121,6 +122,8 @@ void editForm::closeEvent( QCloseEvent * )
|
||||
void editForm::loadText(QString text, int row, int col)
|
||||
{
|
||||
textEditor->setPlainText(text);
|
||||
textEditor->setFocus();
|
||||
textEditor->selectAll();
|
||||
curRow = row;
|
||||
curCol = col;
|
||||
if (textEditor->toPlainText().length() > 0)
|
||||
|
||||
Reference in New Issue
Block a user