|
Krita Source Code Documentation
|
#include <kis_paint_ops_model.h>
Inheritance diagram for KisPaintOpListModel:Public Member Functions | |
| QVariant | data (const QModelIndex &idx, int role=Qt::DisplayRole) const override |
| void | fill (const QList< KisPaintOpFactory * > &list) |
| KisPaintOpListModel (QObject *parent) | |
Public Member Functions inherited from KisCategorizedListModel< TEntry, TEntryToQStringConverter > | |
| SpecificCategoriesMapper * | categoriesMapper () |
| const SpecificCategoriesMapper * | categoriesMapper () const |
| QVariant | data (const QModelIndex &idx, int role=Qt::DisplayRole) const override |
| bool | entryAt (TEntry &entry, QModelIndex index) const |
| Qt::ItemFlags | flags (const QModelIndex &idx) const override |
| QModelIndex | indexOf (const TEntry &entry) const |
| KisCategorizedListModel (QObject *parent=0) | |
| int | rowCount (const QModelIndex &parent) const override |
| bool | setData (const QModelIndex &idx, const QVariant &value, int role=Qt::EditRole) override |
Public Member Functions inherited from __CategorizedListModelBase | |
| __CategorizedListModelBase (QObject *parent) | |
| ~__CategorizedListModelBase () override | |
Additional Inherited Members | |
Public Types inherited from KisCategorizedListModel< TEntry, TEntryToQStringConverter > | |
| typedef SpecificCategoriesMapper::DataItem | DataItem |
| typedef TEntry | Entry_Type |
| typedef KisCategoriesMapper< TEntry, TEntryToQStringConverter > | SpecificCategoriesMapper |
Public Types inherited from __CategorizedListModelBase | |
| enum | AdditionalRoles { IsHeaderRole = Qt::UserRole + 1 , ExpandCategoryRole = Qt::UserRole + 2 , SortRole = Qt::UserRole + 3 , isLockedRole = Qt::UserRole + 4 , isLockableRole = Qt::UserRole + 5 , isToggledRole = Qt::UserRole + 6 } |
Definition at line 48 of file kis_paint_ops_model.h.
| KisPaintOpListModel::KisPaintOpListModel | ( | QObject * | parent | ) |
Definition at line 18 of file kis_paint_ops_model.cpp.
|
override |
Definition at line 23 of file kis_paint_ops_model.cpp.
References KisCategorizedListModel< TEntry, TEntryToQStringConverter >::categoriesMapper(), KisCategoriesMapper< TEntry, TEntryToQStringConverter >::DataItem::data(), KisCategorizedListModel< TEntry, TEntryToQStringConverter >::data(), KisCategoriesMapper< TEntry, TEntryToQStringConverter >::DataItem::isCategory(), KisCategoriesMapper< TEntry, TEntryToQStringConverter >::itemFromRow(), KisCategoriesMapper< TEntry, TEntryToQStringConverter >::DataItem::name(), KisCategoriesMapper< TEntry, TEntryToQStringConverter >::DataItem::parentCategory(), and __CategorizedListModelBase::SortRole.
| void KisPaintOpListModel::fill | ( | const QList< KisPaintOpFactory * > & | list | ) |
Definition at line 45 of file kis_paint_ops_model.cpp.
References KisCategoriesMapper< TEntry, TEntryToQStringConverter >::addEntry(), KisCategorizedListModel< TEntry, TEntryToQStringConverter >::categoriesMapper(), KisPaintOpFactory::category(), KisCategoriesMapper< TEntry, TEntryToQStringConverter >::expandAllCategories(), KisPaintOpFactory::icon(), KisPaintOpFactory::id(), KisPaintOpFactory::name(), and KisPaintOpFactory::priority().