aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-12-28 16:39:57 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-02-15 12:38:21 +0000
commit5dd25c42cb4992316cf40ffa42e74f027cd8b7d0 (patch)
tree50217c276f8c15c862a67d01448c9c5715d63d91 /src/plugins/qmlprofiler/qmlprofilermodelmanager.h
parent00d424eadbc72d1293077c87bb30c7a1c7958d56 (diff)
QmlProfiler: Move event handling into model manager
This is the logical place to do it. Adding the event first to the QML model and then passing it back to the manager in order to have it dispatched to the other models is somewhat backwards. Change-Id: I64b1cb38f97331b62d83fa5ae49b9b2690810d40 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilermodelmanager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.h b/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
index d26cfa4e22..bd05ab97f9 100644
--- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
+++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
@@ -100,6 +100,7 @@ public:
bool isEmpty() const;
uint numLoadedEvents() const;
+ uint numLoadedEventTypes() const;
int registerModelProxy();
void announceFeatures(quint64 features, EventLoader eventLoader, Finalizer finalizer);
@@ -107,7 +108,11 @@ public:
int numFinishedFinalizers() const;
int numRegisteredFinalizers() const;
- void dispatch(const QmlEvent &event, const QmlEventType &type);
+ void addEvents(const QVector<QmlEvent> &events);
+ void addEvent(const QmlEvent &event);
+
+ void addEventTypes(const QVector<QmlEventType> &types);
+ void addEventType(const QmlEventType &type);
quint64 availableFeatures() const;
quint64 visibleFeatures() const;