summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-07-02 11:48:32 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-07-02 11:48:32 (GMT)
commitad0276119802e8f2617a75f64e5f694b37c69bfe (patch)
treeff5dbe81e4d9cbbb4a8ef37aecaac516e35872a8
parentabd00de4a4bb395fd2b66c53c150471e7d8ed8b6 (diff)
downloadswift-contrib-ad0276119802e8f2617a75f64e5f694b37c69bfe.zip
swift-contrib-ad0276119802e8f2617a75f64e5f694b37c69bfe.tar.bz2
Fixed bug with weird behavior of scene after clear
-rw-r--r--Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
index 66db6db..5afc382 100644
--- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
+++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
@@ -29,7 +29,9 @@ namespace Swift {
scene = new QGraphicsScene(this);
scene->setSceneRect(0, 0, 400, 400);
-// scene->setItemIndexMethod(QGraphicsScene::NoIndex);
+ //BspTreeIndex is buggy, there are problems after removing items
+ //from scene
+ scene->setItemIndexMethod(QGraphicsScene::NoIndex);
graphicsView = new GView(scene, this);
graphicsView->setMode(GView::Line);