summaryrefslogtreecommitdiff
path: root/src/gui/tikzscene.cpp
diff options
context:
space:
mode:
authorJon Moroney <darakian@gmail.com>2018-04-09 16:14:17 +0200
committerJon Moroney <darakian@gmail.com>2018-04-09 16:14:17 +0200
commit8b9fa72d80cde6dc54ea2105aa9295af733b643f (patch)
tree6172fb255e1dacbcd0250b5aa674be18030cad11 /src/gui/tikzscene.cpp
parent83a91bf9cc7fe3a379d8b0e5b63c653214851768 (diff)
Remove calls to refreshSceneBounds
Diffstat (limited to 'src/gui/tikzscene.cpp')
-rw-r--r--src/gui/tikzscene.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/tikzscene.cpp b/src/gui/tikzscene.cpp
index a8ff199..f303fab 100644
--- a/src/gui/tikzscene.cpp
+++ b/src/gui/tikzscene.cpp
@@ -635,25 +635,25 @@ void TikzScene::reloadStyles()
}
}
-void TikzScene::refreshSceneBounds()
-{
-// if (!views().empty()) {
-// QGraphicsView *v = views().first();
-// QRectF viewB = v->mapToScene(v->viewport()->rect()).boundingRect();
-// //QPointF tl = v->mapToScene(viewB.topLeft());
-// //viewB.setTopLeft(tl);
-
-// QRectF bounds = viewB.united(rectToScreen(graph()->realBbox().adjusted(-1.0f, -1.0f, 1.0f, 1.0f)));
-// //qDebug() << viewB;
-
-// if (bounds != sceneRect()) {
-// QPointF c = viewB.center();
-// setSceneRect(bounds);
-// v->centerOn(c);
-// }
-// }
- //setBounds(graphB);
-}
+// void TikzScene::refreshSceneBounds()
+// {
+// // if (!views().empty()) {
+// // QGraphicsView *v = views().first();
+// // QRectF viewB = v->mapToScene(v->viewport()->rect()).boundingRect();
+// // //QPointF tl = v->mapToScene(viewB.topLeft());
+// // //viewB.setTopLeft(tl);
+//
+// // QRectF bounds = viewB.united(rectToScreen(graph()->realBbox().adjusted(-1.0f, -1.0f, 1.0f, 1.0f)));
+// // //qDebug() << viewB;
+//
+// // if (bounds != sceneRect()) {
+// // QPointF c = viewB.center();
+// // setSceneRect(bounds);
+// // v->centerOn(c);
+// // }
+// // }
+// //setBounds(graphB);
+// }
void TikzScene::refreshAdjacentEdges(QList<Node*> nodes)
{