Added a ModelItem class to hold the data for each row.

This commit is contained in:
2025-12-03 11:07:39 +01:00
parent 6a3725bde7
commit 0dba9639e6
6 changed files with 129 additions and 7 deletions

8
model/modelitem.cpp Normal file
View File

@ -0,0 +1,8 @@
#include "modelitem.h"
ModelItem::ModelItem(const QHash<int, QVariant> values)
: m_values(values) {}
QVariant ModelItem::data(int role) const { return m_values.value(role); }
bool ModelItem::setData(const QVariant& value, int role) {}