diff options
Diffstat (limited to 'databasemodel.h')
-rw-r--r-- | databasemodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/databasemodel.h b/databasemodel.h index f516c67..10efed3 100644 --- a/databasemodel.h +++ b/databasemodel.h @@ -17,6 +17,7 @@ #ifndef DATABASEMODEL_H #define DATABASEMODEL_H +#include <QUndoStack> #include <QGraphicsScene> #include <QGraphicsSceneMouseEvent> #include <QDomDocument> @@ -51,6 +52,8 @@ public: QString fileName() { return m_fileName; } void setFileName(const QString &fileName) { m_fileName = fileName; } + QUndoStack *undoStack() const { return m_undoStack; } + signals: void modeChanged(DatabaseModel::Mode mode); void tableMoved(DatabaseTable *table); @@ -66,6 +69,7 @@ protected: void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); private: + QUndoStack *m_undoStack; Mode m_mode; QString m_fileName; QGraphicsLineItem *m_line; |