Tracing: Make notes in TimelineModelAggregator mutable

When the notes model is deleted, it becomes null. The notes model
belongs to TimelineTraceManager, not to TimelineModelAggregator.

Change-Id: I0ef9312620e08c06d31bc65976a887af0ca90c33
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2018-08-28 09:25:07 +02:00
parent 93a6dd0c67
commit 3008255bb5
3 changed files with 29 additions and 7 deletions

View File

@@ -145,7 +145,8 @@ QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerViewManag
setLayout(groupLayout);
d->m_viewContainer = container;
d->m_modelProxy = new Timeline::TimelineModelAggregator(modelManager->notesModel(), this);
d->m_modelProxy = new Timeline::TimelineModelAggregator(this);
d->m_modelProxy->setNotes(modelManager->notesModel());
d->m_modelManager = modelManager;
QVariantList models;