diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-07-20 15:38:08 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-07-28 11:03:22 +0000 |
commit | c685165038e10464da877896d1accb7b75d9086e (patch) | |
tree | f1a59a5cb07e38df5d483b43a27e81f6a164e16f /src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.cpp | |
parent | bd48f0e5edb1d5ce10529360fb9d14e7b7135022 (diff) |
Qml: Create profiler adapters in the plugins
This way QtQml doesn't need to know the ctors.
Change-Id: Ie74049092b5eb9837537591c0cf37ad1487e4066
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.cpp')
-rw-r--r-- | src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.cpp b/src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.cpp index ea052f0475..a4320098c0 100644 --- a/src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.cpp +++ b/src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.cpp @@ -48,7 +48,7 @@ QQmlProfilerAdapter::QQmlProfilerAdapter(QQmlProfilerService *service, QQmlEngin next(0) { setService(service); - engine->enableProfiler(); + engine->profiler = new QQmlProfiler; connect(this, &QQmlProfilerAdapter::profilingEnabled, engine->profiler, &QQmlProfiler::startProfiling); connect(this, &QQmlAbstractProfilerAdapter::profilingEnabledWhileWaiting, |