From 65c9092495f8e105a0d578ffee06ac5ae8a08ecb Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 2 Jul 2014 13:59:25 +0200 Subject: [PATCH] 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: David Schulz --- src/plugins/coreplugin/find/findtoolbar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/find/findtoolbar.cpp b/src/plugins/coreplugin/find/findtoolbar.cpp index 5c0ce69c97d..a449ec0e399 100644 --- a/src/plugins/coreplugin/find/findtoolbar.cpp +++ b/src/plugins/coreplugin/find/findtoolbar.cpp @@ -325,8 +325,11 @@ bool FindToolBar::eventFilter(QObject *obj, QEvent *event) void FindToolBar::adaptToCandidate() { updateFindAction(); - if (findToolBarPlaceHolder() == Core::FindToolBarPlaceHolder::getCurrent()) + if (findToolBarPlaceHolder() == Core::FindToolBarPlaceHolder::getCurrent()) { m_currentDocumentFind->acceptCandidate(); + if (isVisible()) + m_currentDocumentFind->highlightAll(getFindText(), effectiveFindFlags()); + } } void FindToolBar::updateFindAction()