35 result.push_back(value.role);
41 role = (role == Qt::EditRole) ? Qt::DisplayRole : role;
43 if (value.role == role)
53 role = (role == Qt::EditRole) ? Qt::DisplayRole : role;
55 if (it->role == role) {
56 if (value.isValid()) {
Defines class SessionItemData.
@ other
The unit has no enum value defined in here (e.g. when defined as an explicit string)
Defines namespace GUI::Util::Variant.
ItemData(int r=-1, QVariant v={})
bool operator==(const ItemData &other) const
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.
bool IsTheSame(const QVariant &var1, const QVariant &var2)
Returns true if given variants have same type and value. For custom variants (e.g....