Commit d92b8edf authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Keep find bar in focus when notes are found

Change-Id: Icca92cd50d7fcda510b7d9d023e4450f53cbdbfd
Task-number: QTCREATORBUG-16193
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 0bae7294
...@@ -378,7 +378,10 @@ bool TraceViewFindSupport::findOne(const QString &txt, Core::FindFlags findFlags ...@@ -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;
......
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