Split TableModel::updateItemsFromJson(...) into two functions and added support for multiple items in JSON data.

This commit is contained in:
2026-02-02 16:48:42 +01:00
parent ba482e6e17
commit d4ff1ffb61
3 changed files with 16 additions and 14 deletions

View File

@ -41,6 +41,7 @@ class TableModel : public QAbstractTableModel {
QByteArray jsonDataForServer(const QModelIndex& currentIndex) const;
QString updateItemsFromJson(const QByteArray& jsonData);
bool updateItem(const ModelItemValues& itemValues);
public slots:
// bool insertRows(int position, int rows, const QModelIndex& parentIndex = QModelIndex())