diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-12-28 16:45:43 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-02-15 12:38:30 +0000 |
commit | 827d48db6eb9668d037a28e92bb2b0483fb9e513 (patch) | |
tree | f67816a7f086ae676f75a0c74ab80e8755819635 /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | |
parent | 5dd25c42cb4992316cf40ffa42e74f027cd8b7d0 (diff) |
QmlProfiler: Move the file finder into the QML model
This is the place where we need it most. In addition, this allows us to
use the DetailsRewriter's cache also on gotoSourceLocation.
Change-Id: I14e0f11ba7c8a2a3888b2e8439a375068b36e29a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp index ccb05f6749..bee5f3deb2 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp @@ -158,7 +158,7 @@ public: }; -QmlProfilerModelManager::QmlProfilerModelManager(Utils::FileInProjectFinder *finder, QObject *parent) : +QmlProfilerModelManager::QmlProfilerModelManager(QObject *parent) : QObject(parent), d(new QmlProfilerModelManagerPrivate) { d->numRegisteredModels = 0; @@ -168,7 +168,7 @@ QmlProfilerModelManager::QmlProfilerModelManager(Utils::FileInProjectFinder *fin d->visibleFeatures = 0; d->recordedFeatures = 0; d->aggregateTraces = false; - d->model = new QmlProfilerDataModel(finder, this); + d->model = new QmlProfilerDataModel(this); d->state = Empty; d->traceTime = new QmlProfilerTraceTime(this); d->notesModel = new QmlProfilerNotesModel(this); |