diff options
author | Ulf Hermann <[email protected]> | 2016-04-28 16:19:17 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2016-05-23 12:30:09 +0000 |
commit | 1e8996b438e6ad28f07882f15967d46678f45335 (patch) | |
tree | 6bffcd22fc32a42129a1e4ac5a5a8e93c5353fdb /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | |
parent | 911c8842b22324bb72a951265cff3ade24494112 (diff) |
QmlProfiler: Methods for dispatching events by feature
When announcing features models have to provide functions that handle
events for those features now. The model manager gets a function to
dispatch events to the models that subscribe to them.
Change-Id: I3fd80443a68ba264a513d8d53ed473cf072f1dc7
Reviewed-by: Joerg Bornemann <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index 72a122168c1..5ee49e123d3 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -65,7 +65,12 @@ QmlProfilerStatisticsModel::QmlProfilerStatisticsModel(QmlProfilerModelManager * d->acceptedTypes << Compiling << Creating << Binding << HandlingSignal << Javascript; - modelManager->announceFeatures(d->modelId, Constants::QML_JS_RANGE_FEATURES); + modelManager->announceFeatures(Constants::QML_JS_RANGE_FEATURES, + [this](const QmlEvent &event, const QmlEventType &type) { + loadEvent(event, type); + }, [this]() { + finalize(); + }); } QmlProfilerStatisticsModel::~QmlProfilerStatisticsModel() |