diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-01-24 10:37:02 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-01-25 12:00:05 +0000 |
commit | cc213dbe495f26e20fa8163670f8e54d925e649b (patch) | |
tree | 43ef0d9f6d4f86c3f974495c71fd225d2887698d /src/plugins/perfprofiler/perfprofilerflamegraphview.cpp | |
parent | 8d6ccb08220957c79e3e0de9b065fcab89e3bce7 (diff) |
Tracing: Add context menu option to reset the flame graph
The double-clicking-on-blank-space method is really hard to discover.
Task-number: QTCREATORBUG-20732
Change-Id: I09e3189292c236fea0698e7cb68ea8340f9033fe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler/perfprofilerflamegraphview.cpp')
-rw-r--r-- | src/plugins/perfprofiler/perfprofilerflamegraphview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/perfprofiler/perfprofilerflamegraphview.cpp b/src/plugins/perfprofiler/perfprofilerflamegraphview.cpp index 6d130b4c4fd..596e836b0f9 100644 --- a/src/plugins/perfprofiler/perfprofilerflamegraphview.cpp +++ b/src/plugins/perfprofiler/perfprofilerflamegraphview.cpp @@ -74,5 +74,15 @@ void PerfProfilerFlameGraphView::selectByTypeId(int typeId) rootObject()->setProperty("selectedTypeId", typeId); } +void PerfProfilerFlameGraphView::resetRoot() +{ + QMetaObject::invokeMethod(rootObject(), "resetRoot"); +} + +bool PerfProfilerFlameGraphView::isZoomed() const +{ + return rootObject()->property("zoomed").toBool(); +} + } // namespace Internal } // namespace PerfProfiler |