forked from qt-creator/qt-creator
QmlProfiler: Move parts of model manager and trace file to Timeline
This way we can use the trace file loading and saving mechanism for other profilers. Change-Id: I98ec1cdde6f7abcea152cabf72e64d4e696dfa59 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -425,7 +425,7 @@ bool TraceViewFindSupport::findOne(const QString &txt, Core::FindFlags findFlags
|
||||
bool forwardSearch = !(findFlags & Core::FindBackward);
|
||||
int increment = forwardSearch ? +1 : -1;
|
||||
int current = forwardSearch ? start : start - 1;
|
||||
QmlProfilerNotesModel *model = m_modelManager->notesModel();
|
||||
Timeline::TimelineNotesModel *model = m_modelManager->notesModel();
|
||||
while (current >= 0 && current < model->count()) {
|
||||
QTextDocument doc(model->text(current)); // for automatic handling of WholeWords option
|
||||
if (!doc.find(regexp, 0, flags).isNull()) {
|
||||
|
||||
Reference in New Issue
Block a user