summaryrefslogtreecommitdiff
path: root/mainwindow.h
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2008-11-27 20:34:50 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2008-11-27 20:34:50 +0100
commit94cb727e66cae3d3be4a1ab592a0ca5e30edc993 (patch)
tree362fbe8efa29bba41134be7066dcb11b1672adbf /mainwindow.h
parent0f76cc1cc76fd5e21f8ba9a10f9fd3612bcd6d3f (diff)
downloaddbmodel-94cb727e66cae3d3be4a1ab592a0ca5e30edc993.tar.xz
Use QUndoStack, just for renaming tables for now
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/mainwindow.h b/mainwindow.h
index ceb2380..e1491e3 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -20,6 +20,7 @@
#include <QMainWindow>
#include <QSplitter>
#include <QStackedWidget>
+#include <QUndoStack>
#include <QAction>
#include "databasemodelview.h"
#include "databasemodel.h"
@@ -31,7 +32,9 @@ class MainWindow: public QMainWindow
public:
MainWindow();
-
+
+ QUndoStack *currentUndoStack();
+
public slots:
void newModel(DatabaseModel *newModel = 0);
@@ -59,7 +62,9 @@ private:
TableProperties *m_properties;
DatabaseModelView *m_view;
DatabaseModel *m_model;
+ QUndoStack *m_undoStack;
+ QAction *m_actionUndo, *m_actionRedo;
QAction *m_actionSwitchMode[3];
QAction *m_actionNew;
QAction *m_actionOpen;