diff options
Diffstat (limited to 'plugins/qmlprofiler/timelinemodelaggregator.cpp')
-rw-r--r-- | plugins/qmlprofiler/timelinemodelaggregator.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/qmlprofiler/timelinemodelaggregator.cpp b/plugins/qmlprofiler/timelinemodelaggregator.cpp index 99c284aea8..238a7a0f3a 100644 --- a/plugins/qmlprofiler/timelinemodelaggregator.cpp +++ b/plugins/qmlprofiler/timelinemodelaggregator.cpp @@ -47,6 +47,7 @@ public: TimelineModelAggregator *q; + int basicModelIndex; QList <AbstractTimelineModel *> modelList; QmlProfilerModelManager *modelManager; }; @@ -82,7 +83,8 @@ void TimelineModelAggregator::setModelManager(QmlProfilerModelManager *modelMana BasicTimelineModel *basicTimelineModel = new BasicTimelineModel(this); basicTimelineModel->setModelManager(modelManager); addModel(basicTimelineModel); - + // the basic model is the last one here + d->basicModelIndex = d->modelList.count() - 1; } @@ -145,6 +147,11 @@ bool TimelineModelAggregator::eventAccepted(const QmlProfilerSimpleModel::QmlEve return true; } +int TimelineModelAggregator::basicModelIndex() const +{ + return d->basicModelIndex; +} + qint64 TimelineModelAggregator::lastTimeMark() const { qint64 mark = -1; |