From 8458807cdc0fd7a6a7d1f0502a7b5f125ece116d Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 24 Sep 2014 12:53:07 +0300 Subject: [PATCH] Resize scene after creation tool. --HG-- branch : develop --- src/app/undocommands/addtocalc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/undocommands/addtocalc.cpp b/src/app/undocommands/addtocalc.cpp index a6f78144b..1e6afddb9 100644 --- a/src/app/undocommands/addtocalc.cpp +++ b/src/app/undocommands/addtocalc.cpp @@ -28,6 +28,10 @@ #include "addtocalc.h" #include "../xml/vpattern.h" +#include "../tools/vabstracttool.h" +#include "../widgets/vapplication.h" +#include "../widgets/vmaingraphicsscene.h" +#include "../widgets/vmaingraphicsview.h" //--------------------------------------------------------------------------------------------------------------------- AddToCalc::AddToCalc(const QDomElement &xml, VPattern *doc, QUndoCommand *parent) @@ -75,6 +79,7 @@ void AddToCalc::undo() doc->setCursor(0); } emit NeedFullParsing(); + VAbstractTool::NewSceneRect(qApp->getCurrentScene(), qApp->getSceneView()); } //--------------------------------------------------------------------------------------------------------------------- @@ -111,4 +116,5 @@ void AddToCalc::redo() return; } RedoFullParsing(); + VAbstractTool::NewSceneRect(qApp->getCurrentScene(), qApp->getSceneView()); }