Commit 65c90924 authored by Eike Ziller's avatar Eike Ziller
Browse files

Find tool bar: Highlight results in editors while the tool bar is open



The highlight was removed when switching editors (also from the original
editor).

Change-Id: Ie2d6760dec52940097f3daafe6e36b57069c1443
Task-number: QTCREATORBUG-9949
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent ccf871aa
...@@ -325,8 +325,11 @@ bool FindToolBar::eventFilter(QObject *obj, QEvent *event) ...@@ -325,8 +325,11 @@ bool FindToolBar::eventFilter(QObject *obj, QEvent *event)
void FindToolBar::adaptToCandidate() void FindToolBar::adaptToCandidate()
{ {
updateFindAction(); updateFindAction();
if (findToolBarPlaceHolder() == Core::FindToolBarPlaceHolder::getCurrent()) if (findToolBarPlaceHolder() == Core::FindToolBarPlaceHolder::getCurrent()) {
m_currentDocumentFind->acceptCandidate(); m_currentDocumentFind->acceptCandidate();
if (isVisible())
m_currentDocumentFind->highlightAll(getFindText(), effectiveFindFlags());
}
} }
void FindToolBar::updateFindAction() void FindToolBar::updateFindAction()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment