diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-02 11:48:32 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-02 11:48:32 (GMT) |
commit | ad0276119802e8f2617a75f64e5f694b37c69bfe (patch) | |
tree | ff5dbe81e4d9cbbb4a8ef37aecaac516e35872a8 /Swift/QtUI | |
parent | abd00de4a4bb395fd2b66c53c150471e7d8ed8b6 (diff) | |
download | swift-contrib-ad0276119802e8f2617a75f64e5f694b37c69bfe.zip swift-contrib-ad0276119802e8f2617a75f64e5f694b37c69bfe.tar.bz2 |
Fixed bug with weird behavior of scene after clear
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp | 4 |
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); |