Split TableModel::updateItemsFromJson(...) into two functions and added support for multiple items in JSON data.
This commit is contained in:
@ -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())
|
||||
|
||||
Reference in New Issue
Block a user