diff options
author | hjk <[email protected]> | 2023-11-22 10:23:21 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2023-11-22 11:27:00 +0000 |
commit | 209c386e6026feac25c710baf0ad29b82ee5c5d2 (patch) | |
tree | a1b8e4a7c6e0af981e2fc38b951c307d0ee4111e /src/plugins/qmlprofiler/qmlprofilertool.cpp | |
parent | db71c461de278b7d03dcd0f4fd90185534308630 (diff) |
QmlProfiler: Dissolve plugin pimpl
... by using the new setup for QmlProfilerTool.
Also, move the class definition to the .cpp.
Change-Id: I3bc93f4960823914da9820fb2cb18de44f1c60c2
Reviewed-by: Jarek Kobus <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertool.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index ea02239a64e..14369b6500d 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -7,7 +7,6 @@ #include "qmlprofilerclientmanager.h" #include "qmlprofilerconstants.h" #include "qmlprofilermodelmanager.h" -#include "qmlprofilerplugin.h" #include "qmlprofilerrunconfigurationaspect.h" #include "qmlprofilerruncontrol.h" #include "qmlprofilersettings.h" @@ -75,8 +74,7 @@ using namespace QmlProfiler::Constants; using namespace ProjectExplorer; using namespace Utils; -namespace QmlProfiler { -namespace Internal { +namespace QmlProfiler::Internal { static QmlProfilerTool *m_instance = nullptr; @@ -919,8 +917,17 @@ void QmlProfilerTool::toggleVisibleFeature(QAction *action) d->m_profilerModelManager->visibleFeatures() | (1ULL << feature)); else d->m_profilerModelManager->setVisibleFeatures( - d->m_profilerModelManager->visibleFeatures() & (~(1ULL << feature))); + d->m_profilerModelManager->visibleFeatures() & (~(1ULL << feature))); } -} // namespace Internal -} // namespace QmlProfiler +void setupQmlProfilerTool() +{ + (void) new QmlProfilerTool; +} + +void destroyQmlProfilerTool() +{ + delete m_instance; +} + +} // QmlProfiler::Internal |