From 96afcb8b66204c3a87797d32a0c4a0d25c39cde8 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Fri, 4 Sep 2015 16:13:48 +0200 Subject: [PATCH] Disable QGV BSP item indexing for the FlameGraph scene. The data changes frequently and this would be slow when we use the BSP. --- gui/flamegraph.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.7.4