Resize scene after creation tool.
--HG-- branch : develop
This commit is contained in:
parent
8de66ad408
commit
8458807cdc
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user