aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2018-03-28 15:40:13 +0200
committerUlf Hermann <[email protected]>2018-04-17 14:11:51 +0000
commit780d4c6a434c84c7bfdd6b2cf0020891481f7b76 (patch)
treec47dfeec4f334df2eae8f964de243c30f4f1be23 /src/plugins/qmlprofiler/scenegraphtimelinemodel.h
parent181ad6671ce9e1de04f79eabb2d8af9cc2c36484 (diff)
Timeline: Move modelId generation into aggregator
The way the notes model works requires every timeline model to have a different ID. Conversely no other kind of model actually needs an ID. Therefore it makes sense to have the TimelineModelAggregator manage the IDs as every timeline model will sooner or later be associated with an aggregator. Change-Id: Ib8b2c88ed883351d4e3e156dd13e1dd113c21808 Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/scenegraphtimelinemodel.h')
-rw-r--r--src/plugins/qmlprofiler/scenegraphtimelinemodel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/scenegraphtimelinemodel.h b/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
index 0dd0e6d5108..a4338738aa6 100644
--- a/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
+++ b/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
@@ -82,7 +82,8 @@ public:
int glyphCount; // only used for one event type
};
- SceneGraphTimelineModel(QmlProfilerModelManager *manager, QObject *parent = 0);
+ SceneGraphTimelineModel(QmlProfilerModelManager *manager,
+ Timeline::TimelineModelAggregator *parent);
int expandedRow(int index) const override;
int collapsedRow(int index) const override;