• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions
KCategoryDrawer Class Reference

#include <kcategorydrawer.h>

Inheritance diagram for KCategoryDrawer:
KCategoryDrawerV2 KCategoryDrawerV3

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

Deprecated:
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.

KCategoryDrawer::~KCategoryDrawer ( )
virtual

Definition at line 57 of file kcategorydrawer.cpp.


Member Function Documentation

int KCategoryDrawer::categoryHeight ( const QModelIndex &  index,
const QStyleOption &  option 
) const
virtual
Returns:
The category height for the category representated by index index with style options option.

Definition at line 158 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:
indexwith the given
sortRolesorting 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
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:34:14 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal