![]() |
LeechCraft
0.6.70-10870-g558588d6ec
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. More... | |
Additional Inherited Members | |
![]() | |
RoleNamesMixin ()=default | |
Default constructor. More... | |
RoleNamesMixin (Args &&... args) | |
Constructs the base Model type with the given args. More... | |
void | setRoleNames (const QHash< int, QByteArray > &roleNames) |
Sets the role names to roleNames. More... | |
QHash< int, QByteArray > | roleNames () const override |
Returns the role names. More... | |
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 49 of file unhidelistmodel.h.
Various unhide roles to be set by the rows of this model.
Definition at line 55 of file unhidelistmodel.h.
LeechCraft::Util::UnhideListModel::UnhideListModel | ( | QObject * | parent | ) |
Constructs the model with the given parent.
[in] | parent | The parent object of this model. |
Definition at line 36 of file unhidelistmodel.cpp.
References LeechCraft::Util::RoleNamesMixin< QStandardItemModel >::roleNames(), and LeechCraft::Util::RoleNamesMixin< QStandardItemModel >::setRoleNames().