mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6374d9cc03
commit
013da6b0af
7 changed files with 3 additions and 152 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue