diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-05-28 16:21:03 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-05-29 12:14:58 +0000 |
commit | 6b9ff15ad5b0e1082dae2e6819b75448e08a6d60 (patch) | |
tree | ac24b15acf5362078827efaead69c54dfb67dec4 /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | |
parent | a741b7300f1a3da8fd9b47fad64654669095b203 (diff) |
QmlProfiler: Move action registration out of QmlProfilerTool
This enables us to have multiple QmlProfilerTool instances without
conflicting action registrations. Ultimately there should be a way to
unregister actions, or to add some extra description on which tool
instance they refer to, but this is a minimal first step.
The main problem this fixes for now is the warnings generated by the
tests.
Change-Id: I2193fc48a5a68c52f46e5567919f3035bc93df36
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp index 033a4b4833..824ac1540c 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp @@ -202,6 +202,12 @@ void QmlProfilerModelManager::replayQmlEvents(QmlEventLoader loader, } } +void QmlProfilerModelManager::clearEventStorage() +{ + TimelineTraceManager::clearEventStorage(); + emit traceChanged(); +} + static QString getDisplayName(const QmlEventType &event) { if (event.location().filename().isEmpty()) { @@ -255,6 +261,7 @@ void QmlProfilerModelManager::finalize() // which happens on stateChanged(Done). TimelineTraceManager::finalize(); + emit traceChanged(); } void QmlProfilerModelManager::populateFileFinder(const ProjectExplorer::Target *target) |