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 <dirk@hohndel.org>
This commit is contained in:
Grace Karanja 2015-02-14 20:12:05 +03:00 committed by Dirk Hohndel
parent 824cc90a9a
commit 87ee8e8aef
3 changed files with 50 additions and 1 deletions

View file

@ -14,4 +14,15 @@ private:
QList<struct dive*> dives;
};
class UndoShiftTime : public QUndoCommand {
public:
UndoShiftTime(QList<int> diveList, int amount);
virtual void undo();
virtual void redo();
private:
QList<int> dives;
int timeChanged;
};
#endif // UNDOCOMMANDS_H