LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
LC::Util::UnhideListModel Class Reference

A model to be used with UnhideListViewBase. More...

#include "unhidelistmodel.h"

+ Inheritance diagram for LC::Util::UnhideListModel:
+ Collaboration diagram for LC::Util::UnhideListModel:

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

- Protected Member Functions inherited from LC::Util::RoleNamesMixin< QStandardItemModel >
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...
 

Detailed Description

A model to be used with UnhideListViewBase.

This model just defines some roles used in various "unhide" lists and exposes them to QML.

See also
UnhideListViewBase

Definition at line 32 of file unhidelistmodel.h.

Member Enumeration Documentation

◆ Roles

Various unhide roles to be set by the rows of this model.

Enumerator
ItemClass 

The unique ID of the item represented by this row.

       Exposed under the name \em itemClass to QML.
ItemName 

The name of the item represented by this row.

       Exposed under the name \em itemName to QML.
ItemDescription 

The description of the item represented by this row.

       Exposed under the name \em itemDescr to QML.
ItemIcon 

The URL of the icon of the item represented by this row.

Exposed under the name itemIcon to QML.

Definition at line 44 of file unhidelistmodel.h.

Constructor & Destructor Documentation

◆ UnhideListModel()

LC::Util::UnhideListModel::UnhideListModel ( QObject *  parent)
explicit

Constructs the model with the given parent.

Parameters
[in]parentThe parent object of this model.

Definition at line 19 of file unhidelistmodel.cpp.


The documentation for this class was generated from the following files: