Retrieve QUndoStack pointer from core and create actions for undo and redo.
This commit is contained in:
@ -7,6 +7,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QAbstractItemModel;
|
||||
|
||||
class QUndoStack;
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
@ -43,6 +44,7 @@ class MainWindow : public QMainWindow {
|
||||
// GenericCore* m_core;
|
||||
unique_ptr<GenericCore> m_core;
|
||||
shared_ptr<QAbstractItemModel> m_tableModel;
|
||||
shared_ptr<QUndoStack> m_modelUndoStack;
|
||||
|
||||
/// File actions
|
||||
unique_ptr<QAction> m_newFileAct;
|
||||
|
||||
Reference in New Issue
Block a user