|
Krita Source Code Documentation
|
#include <KoGenericRegistryModel.h>
Inheritance diagram for KoGenericRegistryModel< T >:Public Member Functions | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| T | get (const QModelIndex &index) const |
| KoGenericRegistryModel (KoGenericRegistry< T > *registry) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| ~KoGenericRegistryModel () override | |
Private Attributes | |
| KoGenericRegistry< T > * | m_registry |
This is a model that you can use to display the content of a registry.
| T | is the type of the data in the registry |
Definition at line 20 of file KoGenericRegistryModel.h.
| KoGenericRegistryModel< T >::KoGenericRegistryModel | ( | KoGenericRegistry< T > * | registry | ) |
Definition at line 54 of file KoGenericRegistryModel.h.
|
override |
Definition at line 59 of file KoGenericRegistryModel.h.
|
override |
When role == Qt::DisplayRole, this function will return the name of the element.
Definition at line 70 of file KoGenericRegistryModel.h.
References get().
| T KoGenericRegistryModel< T >::get | ( | const QModelIndex & | index | ) | const |
Definition at line 82 of file KoGenericRegistryModel.h.
|
override |
Definition at line 64 of file KoGenericRegistryModel.h.
|
private |
Definition at line 49 of file KoGenericRegistryModel.h.