After search dialog is openned, auto set focus to the control for keyword.
This commit is contained in:
parent
c64558e137
commit
e2aacd2361
|
@ -43,7 +43,7 @@ void SearchDialog::find(const QString &text)
|
|||
{
|
||||
mTabBar->setCurrentIndex(mSearchTabIdx);
|
||||
ui->cbFind->setCurrentText(text);
|
||||
ui->btnNext->setFocus();
|
||||
ui->cbFind->setFocus();
|
||||
show();
|
||||
}
|
||||
|
||||
|
@ -51,8 +51,8 @@ void SearchDialog::replace(const QString &text)
|
|||
{
|
||||
mTabBar->setCurrentIndex(mReplaceTabIdx);
|
||||
ui->cbFind->setCurrentText(text);
|
||||
ui->btnNext->setFocus();
|
||||
//ui->cbReplace->setCurrentText("");
|
||||
ui->cbReplace->setCurrentText(text);
|
||||
ui->cbFind->setFocus();
|
||||
show();
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ SearchInFileDialog::~SearchInFileDialog()
|
|||
void SearchInFileDialog::findInFiles(const QString &text)
|
||||
{
|
||||
ui->cbFind->setCurrentText(text);
|
||||
ui->btnExecute->setFocus();
|
||||
ui->cbFind->setFocus();
|
||||
show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue