Undo and Redo command
This commit is contained in:
+3
-1
@@ -2,7 +2,7 @@
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <QUndoStack>
|
||||
#include "path.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@@ -35,6 +35,7 @@ private slots:
|
||||
|
||||
void on_actionopenFile_triggered();
|
||||
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QString currentFile;
|
||||
@@ -42,5 +43,6 @@ private:
|
||||
QList<Path*> path;
|
||||
Path* currentPath;
|
||||
void loadImage(QString fileName);
|
||||
QUndoStack *undoStack;
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user