aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler/perfprofilerflamegraphview.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-01-24 10:37:02 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-01-25 12:00:05 +0000
commitcc213dbe495f26e20fa8163670f8e54d925e649b (patch)
tree43ef0d9f6d4f86c3f974495c71fd225d2887698d /src/plugins/perfprofiler/perfprofilerflamegraphview.cpp
parent8d6ccb08220957c79e3e0de9b065fcab89e3bce7 (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.cpp10
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