Deleting items from the model can now be made undone/redone.

This commit is contained in:
2025-12-11 15:49:16 +01:00
parent 0166a00d9d
commit c75d35179b
5 changed files with 80 additions and 3 deletions

View File

@ -12,6 +12,7 @@ class TableModel : public QAbstractTableModel {
Q_OBJECT
friend class InsertRowsCommand;
friend class RemoveRowsCommand;
public:
enum UserRoles { NameRole = Qt::UserRole + 1, DescriptionRole, InfoRole, AmountRole, FactorRole };