QmlProfiler: Adapt to updateCursorPosition() change in Timeline

As the timeline doesn't automatically move us to the right file/line
anymore when we programatically trigger a selection, we have to do it
explicitly now when searching for notes.

Change-Id: I439b2162555a6cbf1c757c691ad3b0de067e3f94
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-11-11 11:47:12 +01:00
parent 7449c41502
commit 07241006ee
2 changed files with 1 additions and 2 deletions

View File

@@ -414,6 +414,7 @@ bool TraceViewFindSupport::findOne(const QString &txt, Core::FindFlags findFlags
m_currentPosition = current;
m_view->selectByEventIndex(model->timelineModel(m_currentPosition),
model->timelineIndex(m_currentPosition));
m_view->updateCursorPosition(); // open file/line that belongs to event
return true;
}
current += increment;