forked from qt-creator/qt-creator
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 <david.schulz@digia.com>
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user