forked from qt-creator/qt-creator
Fixed a few focus issues we had in the search result window (in replace mode).
Delayed the call to selectAll()
This commit is contained in:
@@ -108,7 +108,6 @@ SearchResultWindow::~SearchResultWindow()
|
|||||||
void SearchResultWindow::setTextToReplace(const QString &textToReplace)
|
void SearchResultWindow::setTextToReplace(const QString &textToReplace)
|
||||||
{
|
{
|
||||||
m_replaceTextEdit->setText(textToReplace);
|
m_replaceTextEdit->setText(textToReplace);
|
||||||
m_replaceTextEdit->selectAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString SearchResultWindow::textToReplace() const
|
QString SearchResultWindow::textToReplace() const
|
||||||
@@ -233,6 +232,7 @@ void SearchResultWindow::setFocus()
|
|||||||
|| m_widget->focusWidget() == m_replaceTextEdit
|
|| m_widget->focusWidget() == m_replaceTextEdit
|
||||||
|| m_focusReplaceEdit) {
|
|| m_focusReplaceEdit) {
|
||||||
m_replaceTextEdit->setFocus();
|
m_replaceTextEdit->setFocus();
|
||||||
|
m_replaceTextEdit->selectAll();
|
||||||
} else {
|
} else {
|
||||||
m_searchResultTreeView->setFocus();
|
m_searchResultTreeView->setFocus();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user