From: Milian Wolff Date: Fri, 4 Sep 2015 14:13:48 +0000 (+0200) Subject: Disable QGV BSP item indexing for the FlameGraph scene. X-Git-Tag: submit/tizen/20180620.112952^2~292^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96afcb8b66204c3a87797d32a0c4a0d25c39cde8;p=sdk%2Ftools%2Fheaptrack.git Disable QGV BSP item indexing for the FlameGraph scene. The data changes frequently and this would be slow when we use the BSP. --- diff --git a/gui/flamegraph.cpp b/gui/flamegraph.cpp index a3a899c..8e2dc52 100644 --- a/gui/flamegraph.cpp +++ b/gui/flamegraph.cpp @@ -196,6 +196,7 @@ FlameGraph::FlameGraph(QWidget* parent, Qt::WindowFlags flags) { setLayout(new QVBoxLayout); + m_scene->setItemIndexMethod(QGraphicsScene::NoIndex); m_view->setScene(m_scene); m_view->viewport()->installEventFilter(this); // prevent duplicate resize, when a scrollbar is shown for the first time