diff options
author | Ulf Hermann <[email protected]> | 2016-12-29 14:26:29 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2017-02-24 11:55:45 +0000 |
commit | 78daf47a257a498cffc67cbff6820b5b93dba92e (patch) | |
tree | 9046eb6f5aab074ace515f8accf2e50e100ebb94 /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | |
parent | 2b75df21393911faf6a2e2f24eb1eb29a149f603 (diff) |
QmlProfiler: Remove references to QmlProfilerDataModel
We keep it private to QmlProfilerModelManager and proxy the last few
methods that were directly called on the model. This enables us to
remove the QmlProfilerDataModel class by integrating what is left of it
into QmlProfilerModelManagerPrivate in a next step.
Change-Id: Ie9b4e03fb286e5a0040374d00b7b26f810426278
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index b1917134300..4384a103275 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -25,7 +25,6 @@ #include "qmlprofilerstatisticsmodel.h" #include "qmlprofilermodelmanager.h" -#include "qmlprofilerdatamodel.h" #include <utils/algorithm.h> #include <utils/qtcassert.h> @@ -120,11 +119,11 @@ void QmlProfilerStatisticsModel::restrictToFeatures(qint64 features) return; clear(); - if (!d->modelManager->qmlModel()->replayEvents(d->modelManager->traceTime()->startTime(), - d->modelManager->traceTime()->endTime(), - std::bind(&QmlProfilerStatisticsModel::loadEvent, - this, std::placeholders::_1, - std::placeholders::_2))) { + if (!d->modelManager->replayEvents(d->modelManager->traceTime()->startTime(), + d->modelManager->traceTime()->endTime(), + std::bind(&QmlProfilerStatisticsModel::loadEvent, + this, std::placeholders::_1, + std::placeholders::_2))) { emit d->modelManager->error(tr("Could not re-read events from temporary trace file.")); clear(); } else { @@ -140,7 +139,7 @@ const QHash<int, QmlProfilerStatisticsModel::QmlEventStats> &QmlProfilerStatisti const QVector<QmlEventType> &QmlProfilerStatisticsModel::getTypes() const { - return d->modelManager->qmlModel()->eventTypes(); + return d->modelManager->eventTypes(); } const QHash<int, QString> &QmlProfilerStatisticsModel::getNotes() const @@ -322,7 +321,7 @@ QmlProfilerStatisticsRelativesModel::getData(int typeId) const const QVector<QmlEventType> &QmlProfilerStatisticsRelativesModel::getTypes() const { - return m_modelManager->qmlModel()->eventTypes(); + return m_modelManager->eventTypes(); } void QmlProfilerStatisticsRelativesModel::loadEvent(RangeType type, const QmlEvent &event, |