KDEUI
#include <kcategorydrawer.h>
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
The category drawing is performed by this class. It also gives information about the category height and margins.
- Warning
- Please use KCategoryDrawerV3 instead
Definition at line 43 of file kcategorydrawer.h.
Constructor & Destructor Documentation
KCategoryDrawer::KCategoryDrawer | ( | ) |
Definition at line 50 of file kcategorydrawer.cpp.
|
virtual |
Definition at line 57 of file kcategorydrawer.cpp.
Member Function Documentation
|
virtual |
- Returns
- The category height for the category representated by index
index
with style optionsoption
.
Definition at line 158 of file kcategorydrawer.cpp.
|
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 62 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:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.