diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-01-14 19:01:59 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-01-14 19:01:59 +0100 |
commit | 4c4ced442811452e0a56800125db1620b2718c91 (patch) | |
tree | 1a585a0660a4fd93be2335c6a2a2a22c101130b8 /src/gui/undocommands.h | |
parent | b7af46fb5b23890387628528c2cf6e310fc96c25 (diff) |
add edge implementation 2/2
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r-- | src/gui/undocommands.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h index 0a7dece..9032274 100644 --- a/src/gui/undocommands.h +++ b/src/gui/undocommands.h @@ -79,4 +79,15 @@ private: QRectF _newBounds; }; +class AddEdgeCommand : public QUndoCommand +{ +public: + explicit AddEdgeCommand(TikzScene *scene, Edge *edge); + void undo() override; + void redo() override; +private: + TikzScene *_scene; + Edge *_edge; +}; + #endif // UNDOCOMMANDS_H |