Do not clear flamegraph on hide
authorMilian Wolff <mail@milianw.de>
Wed, 3 May 2017 22:07:26 +0000 (00:07 +0200)
committerMilian Wolff <mail@milianw.de>
Wed, 3 May 2017 22:08:40 +0000 (00:08 +0200)
This way we keep the history / zoom state when navigating away from
the flamegraph, e.g. to quickly check something in the caller/callee
view.

src/analyze/gui/flamegraph.cpp

index 973967f..12b7dc1 100644 (file)
@@ -573,8 +573,6 @@ bool FlameGraph::eventFilter(QObject* object, QEvent* event)
             selectItem(m_selectionHistory.at(m_selectedItem));
         }
         updateTooltip();
-    } else if (event->type() == QEvent::Hide) {
-        setData(nullptr);
     } else if (event->type() == QEvent::ToolTip) {
         const auto& tooltip = m_displayLabel->toolTip();
         if (tooltip.isEmpty()) {