KDEUI
KCategoryDrawer Class Reference
#include <kcategorydrawer.h>
Inheritance diagram for KCategoryDrawer:

Public Member Functions | |
| KCategoryDrawer () | |
| virtual | ~KCategoryDrawer () |
| virtual int | categoryHeight (const QModelIndex &index, const QStyleOption &option) const |
| virtual void | drawCategory (const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const |
| int | leftMargin () const |
| KCategoryDrawer & | operator= (const KCategoryDrawer &cd) |
| int | rightMargin () const |
| void | setLeftMargin (int leftMargin) |
| void | setRightMargin (int rightMargin) |
Detailed Description
- Warning:
- Please use KCategoryDrawerV2 instead.
Definition at line 36 of file kcategorydrawer.h.
Constructor & Destructor Documentation
| KCategoryDrawer::KCategoryDrawer | ( | ) |
Definition at line 49 of file kcategorydrawer.cpp.
| KCategoryDrawer::~KCategoryDrawer | ( | ) | [virtual] |
Definition at line 56 of file kcategorydrawer.cpp.
Member Function Documentation
| int KCategoryDrawer::categoryHeight | ( | const QModelIndex & | index, | |
| const QStyleOption & | option | |||
| ) | const [virtual] |
Definition at line 159 of file kcategorydrawer.cpp.
| void KCategoryDrawer::drawCategory | ( | const QModelIndex & | index, | |
| int | sortRole, | |||
| const QStyleOption & | option, | |||
| QPainter * | painter | |||
| ) | const [virtual] |
This method purpose is to draw a category represented by the given.
- Parameters:
-
index with the given sortRole sorting role
- Note:
- This method will be called one time per category, always with the first element in that category
Definition at line 61 of file kcategorydrawer.cpp.
| int KCategoryDrawer::leftMargin | ( | ) | const |
| KCategoryDrawer & KCategoryDrawer::operator= | ( | const KCategoryDrawer & | cd | ) |
Definition at line 192 of file kcategorydrawer.cpp.
| int KCategoryDrawer::rightMargin | ( | ) | const |
| void KCategoryDrawer::setLeftMargin | ( | int | leftMargin | ) |
- Note:
- call to this method on the KCategoryDrawer constructor to set the left margin
- Since:
- 4.4
Definition at line 177 of file kcategorydrawer.cpp.
| void KCategoryDrawer::setRightMargin | ( | int | rightMargin | ) |
- Note:
- call to this method on the KCategoryDrawer constructor to set the right margin
- Since:
- 4.4
Definition at line 187 of file kcategorydrawer.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference