Element texts group is fully managed by the undo stack

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5124 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2017-11-29 14:49:12 +00:00
parent 12b30e7f30
commit 4e440456fc
11 changed files with 611 additions and 132 deletions

View File

@@ -22,6 +22,7 @@
#include "diagramcontent.h"
class Diagram;
class ElementTextItemGroup;
class DeleteQGraphicsItemCommand : public QUndoCommand
{
@@ -41,6 +42,7 @@ class DeleteQGraphicsItemCommand : public QUndoCommand
Diagram *m_diagram;
QHash <Element *, QList<Element *> > m_link_hash; /// keep linked element for each removed element linked to other element.
QHash <DynamicElementTextItem *, Element *> m_elmt_text_hash; /// Keep the parent element of each deleted dynamic element text item
QHash <DynamicElementTextItem *, ElementTextItemGroup *> m_grp_texts_hash; ///Keep the parent group of each deleted element text item
};
#endif // DELETEQGRAPHICSITEMCOMMAND_H