diff options
Diffstat (limited to 'qt-ui/undocommands.h')
-rw-r--r-- | qt-ui/undocommands.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/undocommands.h b/qt-ui/undocommands.h index e4f2da8e1..bd8530d77 100644 --- a/qt-ui/undocommands.h +++ b/qt-ui/undocommands.h @@ -37,4 +37,14 @@ private: int start; }; +class UndoRemoveDivesFromTrip : public QUndoCommand { +public: + UndoRemoveDivesFromTrip(QMap<struct dive*, dive_trip*> removedDives); + virtual void undo(); + virtual void redo(); + +private: + QMap<struct dive*, dive_trip*> divesToUndo; +}; + #endif // UNDOCOMMANDS_H |