digiKam
Digikam::CategorizedItemModel Class Reference
+ Inheritance diagram for Digikam::CategorizedItemModel:

Public Types

enum  ExtraRoles { ItemOrderRole = Qt::UserRole + 1 }
 

Public Member Functions

QStandardItem * addItem (const QString &text, const QIcon &decoration, const QVariant &category, const QVariant &categorySorting=QVariant())
 
QStandardItem * addItem (const QString &text, const QVariant &category, const QVariant &categorySorting=QVariant())
 
 CategorizedItemModel (QObject *const parent=nullptr)
 
virtual DCategorizedSortFilterProxyModelcreateFilterModel ()
 

Member Enumeration Documentation

◆ ExtraRoles

Enumerator
ItemOrderRole 

This role, per default, reflects the order in which items are added.

Constructor & Destructor Documentation

◆ CategorizedItemModel()

Digikam::CategorizedItemModel::CategorizedItemModel ( QObject *const  parent = nullptr)
explicit

Member Function Documentation

◆ addItem() [1/2]

QStandardItem * Digikam::CategorizedItemModel::addItem ( const QString &  text,
const QIcon &  decoration,
const QVariant &  category,
const QVariant &  categorySorting = QVariant() 
)

References addItem().

Referenced by addItem().

◆ addItem() [2/2]

QStandardItem * Digikam::CategorizedItemModel::addItem ( const QString &  text,
const QVariant &  category,
const QVariant &  categorySorting = QVariant() 
)

◆ createFilterModel()

DCategorizedSortFilterProxyModel * Digikam::CategorizedItemModel::createFilterModel ( )
virtual

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