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

18
model/modelitem.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef MODELITEM_H
#define MODELITEM_H
#include <QVariant>
class ModelItem {
public:
ModelItem(const QHash<int, QVariant> values);
QVariant data(int role) const;
bool setData(const QVariant& value, int role);
private:
QHash<int, QVariant> m_values;
};
#endif // MODELITEM_H