krita/ui
KisCategorizedItemDelegate Class Reference
This delegate draw categories using information from a KCategorizedSortFilterProxyModel . More...
#include <kis_categorized_item_delegate.h>

Public Member Functions | |
| KisCategorizedItemDelegate (QAbstractItemDelegate *_fallback, QObject *parent=0) | |
| ~KisCategorizedItemDelegate () | |
| virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| virtual bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| virtual void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Detailed Description
This delegate draw categories using information from a KCategorizedSortFilterProxyModel .
Definition at line 27 of file kis_categorized_item_delegate.h.
Constructor & Destructor Documentation
| KisCategorizedItemDelegate::KisCategorizedItemDelegate | ( | QAbstractItemDelegate * | _fallback, | |
| QObject * | parent = 0 | |||
| ) |
The _fallback delegate is used to take care of drawing/editing of the items.
Definition at line 41 of file kis_categorized_item_delegate.cpp.
| KisCategorizedItemDelegate::~KisCategorizedItemDelegate | ( | ) |
Definition at line 50 of file kis_categorized_item_delegate.cpp.
Member Function Documentation
| QWidget * KisCategorizedItemDelegate::createEditor | ( | QWidget * | parent, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Definition at line 58 of file kis_categorized_item_delegate.cpp.
| bool KisCategorizedItemDelegate::editorEvent | ( | QEvent * | event, | |
| QAbstractItemModel * | model, | |||
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | [virtual] |
Reimplemented from QAbstractItemDelegate.
Definition at line 63 of file kis_categorized_item_delegate.cpp.
| void KisCategorizedItemDelegate::paint | ( | QPainter * | painter, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Definition at line 68 of file kis_categorized_item_delegate.cpp.
| void KisCategorizedItemDelegate::setEditorData | ( | QWidget * | editor, | |
| const QModelIndex & | index | |||
| ) | const [virtual] |
Definition at line 110 of file kis_categorized_item_delegate.cpp.
| void KisCategorizedItemDelegate::setModelData | ( | QWidget * | editor, | |
| QAbstractItemModel * | model, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Definition at line 115 of file kis_categorized_item_delegate.cpp.
| QSize KisCategorizedItemDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const [virtual] |
Definition at line 120 of file kis_categorized_item_delegate.cpp.
| void KisCategorizedItemDelegate::updateEditorGeometry | ( | QWidget * | editor, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Definition at line 130 of file kis_categorized_item_delegate.cpp.
The documentation for this class was generated from the following files:
