15 #ifndef BORNAGAIN_GUI_SUPPORT_DATA_SESSIONITEMDATA_H
16 #define BORNAGAIN_GUI_SUPPORT_DATA_SESSIONITEMDATA_H
25 QVector<int>
roles()
const;
27 QVariant
data(
int role)
const;
29 bool setData(
int role,
const QVariant& value);
34 ItemData(
int r = -1, QVariant v = {});
@ other
The unit has no enum value defined in here (e.g. when defined as an explicit string)
ItemData(int r=-1, QVariant v={})
bool operator==(const ItemData &other) const
Handles all data roles for SessionItem.
QVector< ItemData > m_values
QVector< int > roles() const
QVariant data(int role) const
bool setData(int role, const QVariant &value)
Sets the data for given role. Returns true if data was changed.