forked from qt-creator/qt-creator
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 <tobias.hunger@qt.io>
This commit is contained in:
@@ -56,7 +56,8 @@ public:
|
||||
int bindingLoopHead;
|
||||
};
|
||||
|
||||
QmlProfilerRangeModel(QmlProfilerModelManager *manager, RangeType range, QObject *parent = 0);
|
||||
QmlProfilerRangeModel(QmlProfilerModelManager *manager, RangeType range,
|
||||
Timeline::TimelineModelAggregator *parent);
|
||||
|
||||
Q_INVOKABLE int expandedRow(int index) const override;
|
||||
Q_INVOKABLE int collapsedRow(int index) const override;
|
||||
|
||||
Reference in New Issue
Block a user