• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KCategoryDrawer Class Reference

#include <kcategorydrawer.h>

Inheritance diagram for KCategoryDrawer:
Inheritance graph
[legend]

List of all members.

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
Note:
0 by default
Since:
4.4

Definition at line 172 of file kcategorydrawer.cpp.

KCategoryDrawer & KCategoryDrawer::operator= ( const KCategoryDrawer &  cd  ) 

Definition at line 192 of file kcategorydrawer.cpp.

int KCategoryDrawer::rightMargin (  )  const
Note:
0 by default
Since:
4.4

Definition at line 182 of file kcategorydrawer.cpp.

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:
  • kcategorydrawer.h
  • kcategorydrawer.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  •     Sodep
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal