From 87ee8e8aef00f2e183c57a93754717ea41da9179 Mon Sep 17 00:00:00 2001 From: Grace Karanja Date: Sat, 14 Feb 2015 20:12:05 +0300 Subject: Add ability to undo shifting of dive time Adds the ability to undo shifting of dive times. The change is captured at simplewidgets.cpp and an undo command is created. Signed-off-by: Dirk Hohndel --- qt-ui/undocommands.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'qt-ui/undocommands.h') diff --git a/qt-ui/undocommands.h b/qt-ui/undocommands.h index 9a7803f9e..addef8138 100644 --- a/qt-ui/undocommands.h +++ b/qt-ui/undocommands.h @@ -14,4 +14,15 @@ private: QList dives; }; +class UndoShiftTime : public QUndoCommand { +public: + UndoShiftTime(QList diveList, int amount); + virtual void undo(); + virtual void redo(); + +private: + QList dives; + int timeChanged; +}; + #endif // UNDOCOMMANDS_H -- cgit v1.2.3-70-g09d2