1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef UNDOCOMMANDS_H #define UNDOCOMMANDS_H #include <QUndoCommand> #include "dive.h" class UndoDeleteDive : public QUndoCommand { public: UndoDeleteDive(QList<struct dive*> diveList); virtual void undo(); virtual void redo(); private: QList<struct dive*> dives; }; #endif // UNDOCOMMANDS_H