aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/debugmessagesmodel.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-04-26 13:23:35 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-05-23 12:04:49 +0000
commit5ba6f04d4b240c0217dd714aa8caf32d4ad24c4a (patch)
tree4d4adc24eadcf31b17b7ce3cbfdcaa2eb9637e41 /src/plugins/qmlprofiler/debugmessagesmodel.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 <joerg.bornemann@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/debugmessagesmodel.h')
-rw-r--r--src/plugins/qmlprofiler/debugmessagesmodel.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/debugmessagesmodel.h b/src/plugins/qmlprofiler/debugmessagesmodel.h
index 8b23d6ac8e4..bbcfa387b63 100644
--- a/src/plugins/qmlprofiler/debugmessagesmodel.h
+++ b/src/plugins/qmlprofiler/debugmessagesmodel.h
@@ -34,9 +34,6 @@ class DebugMessagesModel : public QmlProfilerTimelineModel
{
Q_OBJECT
-protected:
- bool accepted(const QmlEventType &event) const override;
-
public:
DebugMessagesModel(QmlProfilerModelManager *manager, QObject *parent = 0);
@@ -46,7 +43,8 @@ public:
QVariantMap details(int index) const override;
int expandedRow(int index) const override;
int collapsedRow(int index) const override;
- void loadData() override;
+ void loadEvent(const QmlEvent &event, const QmlEventType &type) override;
+ void finalize() override;
void clear() override;
QVariantMap location(int index) const override;