aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2016-04-26 13:23:35 +0200
committerUlf Hermann <[email protected]>2016-05-23 12:04:49 +0000
commit5ba6f04d4b240c0217dd714aa8caf32d4ad24c4a (patch)
tree4d4adc24eadcf31b17b7ce3cbfdcaa2eb9637e41 /src/plugins/qmlprofiler/scenegraphtimelinemodel.h
parent67378a7928af1d3ed91d0f704ae71a3e1381c8f4 (diff)
QmlProfiler: Load the timeline model data event by event
All the models do the same thing when loading the data: They iterate the list of events, determine for each one if they accept it, and if so, they load it. After the list has been fully loaded, they do some finalization. This can be centralized, and ultimately we won't need to expose the central QVector<QmlEvent> for that anymore. Change-Id: Ia82facfdc3968200bbec323a02f2fcc02ac44e9e Reviewed-by: Joerg Bornemann <[email protected]> Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/scenegraphtimelinemodel.h')
-rw-r--r--src/plugins/qmlprofiler/scenegraphtimelinemodel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/scenegraphtimelinemodel.h b/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
index ab2a0695a89..66bfaa50327 100644
--- a/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
+++ b/src/plugins/qmlprofiler/scenegraphtimelinemodel.h
@@ -95,8 +95,9 @@ public:
QVariantMap details(int index) const;
protected:
- void loadData();
- void clear();
+ void loadEvent(const QmlEvent &event, const QmlEventType &type) override;
+ void finalize() override;
+ void clear() override;
private:
void flattenLoads();