diff options
author | Grace Karanja <gracie.karanja89@gmail.com> | 2015-02-11 09:10:34 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-11 07:59:46 -0800 |
commit | 013da6b0af3e3dd5d074f2dbbc342d9b948717b4 (patch) | |
tree | 4bc4cf314e0088f1c76736e45d3d7dcb817a0baf /qt-ui/mainwindow.h | |
parent | 6374d9cc0334c7dc7af908b4cb9233a091a48740 (diff) | |
download | subsurface-013da6b0af3e3dd5d074f2dbbc342d9b948717b4.tar.gz |
Reverse undo buffer
Reverse all the code using the UndoBuffer class so that we can
use the QUndoStack and QUndoCommand classes. These are Qt's own
inbuild undo framework classes, offering a better undo/redo
process.
Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 716968bbd..5ee085c29 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -34,7 +34,6 @@ class DivePlannerWidget; class ProfileWidget2; class PlannerDetails; class PlannerSettingsWidget; -class UndoBuffer; enum MainWindowTitleFormat { MWTF_DEFAULT, @@ -89,7 +88,6 @@ public: void printPlan(); void checkSurvey(QSettings *s); void setApplicationState(const QByteArray& state); - UndoBuffer *undoBuffer; private slots: /* file menu action */ @@ -159,9 +157,6 @@ slots: void on_paste_triggered(); void on_actionFilterTags_triggered(); void on_actionConfigure_Dive_Computer_triggered(); - void on_action_Undo_triggered(); - void on_action_Redo_triggered(); - void checkForUndoAndRedo(); protected: void closeEvent(QCloseEvent *); |