Retrieve QUndoStack pointer from core and create actions for undo and redo.

This commit is contained in:
2025-12-06 10:36:21 +01:00
parent c7012ceff5
commit 370bcd5a41
2 changed files with 17 additions and 0 deletions

View File

@ -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;