Added a QUndoStack and made it accessible for UIs.

This commit is contained in:
2025-12-06 10:34:44 +01:00
parent a07e03d80d
commit 5b5713c89f
3 changed files with 11 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#include <QObject>
class QUndoStack;
class QAbstractItemModel;
class QString;
@ -21,12 +22,14 @@ class GenericCore : public QObject {
bool isApplicationUpdateAvailable();
void triggerApplicationUpdate();
std::shared_ptr<QUndoStack> getModUndoStack() const;
std::shared_ptr<QAbstractItemModel> getModel() const;
signals:
void displayStatusMessage(QString message);
private:
std::shared_ptr<QUndoStack> m_modelUndoStack;
std::shared_ptr<TableModel> m_mainModel;
void setupModels();