forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user