QmlProfiler: Keep find bar in focus when notes are found

Change-Id: Icca92cd50d7fcda510b7d9d023e4450f53cbdbfd
Task-number: QTCREATORBUG-16193
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-05-02 10:50:55 +02:00
parent 0bae72949d
commit d92b8edf51

View File

@@ -378,7 +378,10 @@ bool TraceViewFindSupport::findOne(const QString &txt, Core::FindFlags findFlags
m_currentPosition = current; m_currentPosition = current;
m_view->selectByEventIndex(model->timelineModel(m_currentPosition), m_view->selectByEventIndex(model->timelineModel(m_currentPosition),
model->timelineIndex(m_currentPosition)); model->timelineIndex(m_currentPosition));
QWidget *findBar = QApplication::focusWidget();
m_view->updateCursorPosition(); // open file/line that belongs to event m_view->updateCursorPosition(); // open file/line that belongs to event
QTC_ASSERT(findBar, return true);
findBar->setFocus();
return true; return true;
} }
current += increment; current += increment;