Items can be saved to JSON file "items.json" (in standard location).

This commit is contained in:
2025-12-23 10:14:13 +01:00
parent 2c3d49db30
commit 0e1a0d4959
9 changed files with 119 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class TableModel : public QAbstractTableModel {
bool setData(const QModelIndex& index, const QVariant& value, int role) override;
bool setItemData(const QModelIndex& index, const QMap<int, QVariant>& roles) override;
QJsonDocument getAllItemsAsJsonDoc() const;
public slots:
// bool insertRows(int position, int rows, const QModelIndex& parentIndex = QModelIndex())
// override;