![]() |
LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
|
A model to be used with UnhideListViewBase. More...
#include "unhidelistmodel.h"
Public Types | |
enum | Roles { ItemClass = Qt::UserRole + 1 , ItemName , ItemDescription , ItemIcon } |
Various unhide roles to be set by the rows of this model. More... | |
Public Member Functions | |
UnhideListModel (QObject *parent) | |
Constructs the model with the given parent. | |
Additional Inherited Members | |
![]() | |
void | setRoleNames (const QHash< int, QByteArray > &roleNames) |
Sets the role names to roleNames. | |
QHash< int, QByteArray > | roleNames () const override |
Returns the role names. | |
A model to be used with UnhideListViewBase.
This model just defines some roles used in various "unhide" lists and exposes them to QML.
Definition at line 26 of file unhidelistmodel.h.
Various unhide roles to be set by the rows of this model.
Definition at line 32 of file unhidelistmodel.h.
|
explicit |
Constructs the model with the given parent.
[in] | parent | The parent object of this model. |
Definition at line 13 of file unhidelistmodel.cpp.
References ItemClass, ItemDescription, ItemIcon, ItemName, and LC::Util::RoleNamesMixin< QStandardItemModel >::setRoleNames().