|
Krita Source Code Documentation
|
#include <kis_categorized_item_delegate.h>
Inheritance diagram for KisCategorizedItemDelegate:Public Member Functions | |
| KisCategorizedItemDelegate (QObject *parent) | |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
Private Member Functions | |
| void | paintTriangle (QPainter *painter, qint32 x, qint32 y, qint32 size, bool rotate) const |
Private Attributes | |
| qint32 | m_minimumItemHeight |
This delegate draw categories using information from a QSortFilterProxyModel.
Definition at line 18 of file kis_categorized_item_delegate.h.
| KisCategorizedItemDelegate::KisCategorizedItemDelegate | ( | QObject * | parent | ) |
Definition at line 24 of file kis_categorized_item_delegate.cpp.
|
override |
Definition at line 30 of file kis_categorized_item_delegate.cpp.
References __CategorizedListModelBase::ExpandCategoryRole, iconSize(), __CategorizedListModelBase::IsHeaderRole, __CategorizedListModelBase::isLockableRole, __CategorizedListModelBase::isLockedRole, koIconName, KisIconUtils::loadIcon(), m_minimumItemHeight, p, paintTriangle(), and palette.
|
private |
Definition at line 129 of file kis_categorized_item_delegate.cpp.
References palette.
|
override |
Make all the items, including the ones having checkboxes look the same.
Definition at line 100 of file kis_categorized_item_delegate.cpp.
References __CategorizedListModelBase::isLockableRole, and m_minimumItemHeight.
|
mutableprivate |
Definition at line 27 of file kis_categorized_item_delegate.h.