![]() |
LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
|
Provides Qt4-style role names setters. More...
#include "rolenamesmixin.h"
Protected Member Functions | |
void | setRoleNames (const QHash< int, QByteArray > &roleNames) |
Sets the role names to roleNames. | |
QHash< int, QByteArray > | roleNames () const override |
Returns the role names. | |
Provides Qt4-style role names setters.
Qt4 uses QAbstractItemModel::setRoleNames() to set role names for a (non-virtual) QAbstractItemModel::roleNames() method. Newer Qt, 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 29 of file rolenamesmixin.h.
|
inlineoverrideprotected |
Returns the role names.
Returns the mapping from the role value to its name that was previously set via setRoleNames().
Definition at line 55 of file rolenamesmixin.h.
Referenced by setRoleNames().
|
inlineprotected |
Sets the role names to roleNames.
[in] | roleNames | The mapping from role value to its name. |
Definition at line 41 of file rolenamesmixin.h.
References roleNames().