Adding new items to the model can now be made undone/redone.

This commit is contained in:
2025-12-11 15:46:28 +01:00
parent 432e81d4be
commit 0166a00d9d
7 changed files with 114 additions and 18 deletions

View File

@ -22,14 +22,14 @@ class GenericCore : public QObject {
bool isApplicationUpdateAvailable();
void triggerApplicationUpdate();
std::shared_ptr<QUndoStack> getModUndoStack() const;
QUndoStack* getModelUndoStack() const;
std::shared_ptr<TableModel> getModel() const;
signals:
void displayStatusMessage(QString message);
private:
std::shared_ptr<QUndoStack> m_modelUndoStack;
QUndoStack* m_modelUndoStack;
std::shared_ptr<TableModel> m_mainModel;
void setupModels();