52 template<
typename Model>
55 QHash<int, QByteArray> RoleNames_;
72 template<
typename... Args>
74 :
Model { std::forward<Args> (args)... }
RoleNamesMixin(Args &&... args)
Constructs the base Model type with the given args.
RoleNamesMixin()=default
Default constructor.
void setRoleNames(const QHash< int, QByteArray > &roleNames)
Sets the role names to roleNames.
QHash< int, QByteArray > roleNames() const override
Returns the role names.
Wraps differences between role names handling in Qt4 and Qt5.
The human-readable name of the device model (QString).