Added a ModelItem class to hold the data for each row.
This commit is contained in:
8
model/modelitem.cpp
Normal file
8
model/modelitem.cpp
Normal 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) {}
|
||||
Reference in New Issue
Block a user