Disable QGV BSP item indexing for the FlameGraph scene.
authorMilian Wolff <milian.wolff@kdab.com>
Fri, 4 Sep 2015 14:13:48 +0000 (16:13 +0200)
committerMilian Wolff <milian.wolff@kdab.com>
Fri, 4 Sep 2015 14:13:48 +0000 (16:13 +0200)
The data changes frequently and this would be slow when we use the BSP.

gui/flamegraph.cpp

index a3a899c..8e2dc52 100644 (file)
@@ -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