Resize scene after creation tool.

--HG--
branch : develop
This commit is contained in:
dismine 2014-09-24 12:53:07 +03:00
parent 8de66ad408
commit 8458807cdc

View File

@ -28,6 +28,10 @@
#include "addtocalc.h" #include "addtocalc.h"
#include "../xml/vpattern.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) AddToCalc::AddToCalc(const QDomElement &xml, VPattern *doc, QUndoCommand *parent)
@ -75,6 +79,7 @@ void AddToCalc::undo()
doc->setCursor(0); doc->setCursor(0);
} }
emit NeedFullParsing(); emit NeedFullParsing();
VAbstractTool::NewSceneRect(qApp->getCurrentScene(), qApp->getSceneView());
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -111,4 +116,5 @@ void AddToCalc::redo()
return; return;
} }
RedoFullParsing(); RedoFullParsing();
VAbstractTool::NewSceneRect(qApp->getCurrentScene(), qApp->getSceneView());
} }