![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
Wraps differences between role names handling in Qt4 and Qt5. More...
#include "rolenamesmixin.h"
Inheritance diagram for LeechCraft::Util::RoleNamesMixin< Model >:
Collaboration diagram for LeechCraft::Util::RoleNamesMixin< Model >:Protected Member Functions | |
| RoleNamesMixin ()=default | |
| Default constructor. More... | |
| template<typename... Args> | |
| RoleNamesMixin (Args &&...args) | |
| Constructs the base Model type with the given args. More... | |
Wraps differences between role names handling in Qt4 and Qt5.
Qt4 uses QAbstractItemModel::setRoleNames() to set role names for a (non-virtual) QAbstractItemModel::roleNames() method. Qt5, on the other hand, just suggests overriding the (virtual) roleNames() method. This class provides an uniform interface. This class provides an uniform interface for role names setting.
| Model | The original model type to derive from. |
Definition at line 53 of file rolenamesmixin.h.
|
protecteddefault |
Default constructor.
Assumes the existence of a default constructor in the Model type.
|
inlineprotected |
Constructs the base Model type with the given args.
| Args | The arguments of the values to pass to the Model constructor. |
| [in] | args | The values to pass to the Model constructor. |
Definition at line 75 of file rolenamesmixin.h.