• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

KVTTableDelegate Class Reference

#include <kvttabledelegate.h>

Inheritance diagram for KVTTableDelegate:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Peter Hedlund <peter.hedlund@kdemail.net>

Definition at line 31 of file kvttabledelegate.h.


Public Member Functions

 KVTTableDelegate (QObject *parent=0)
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setEditorData (QWidget *editor, const QModelIndex &index) const
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
void setCurrentIndex (const QModelIndex &index)
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const

Protected Member Functions

void drawDisplay (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const
void drawFocus (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const

Constructor & Destructor Documentation

KVTTableDelegate::KVTTableDelegate ( QObject *  parent = 0  ) 

Definition at line 43 of file kvttabledelegate.cpp.


Member Function Documentation

QWidget * KVTTableDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 46 of file kvttabledelegate.cpp.

void KVTTableDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const

Definition at line 98 of file kvttabledelegate.cpp.

void KVTTableDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

Definition at line 128 of file kvttabledelegate.cpp.

void KVTTableDelegate::setCurrentIndex ( const QModelIndex &  index  ) 

Definition at line 324 of file kvttabledelegate.cpp.

void KVTTableDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Todo:
a better way to calculate the width of this combobox?

Definition at line 167 of file kvttabledelegate.cpp.

QSize KVTTableDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 239 of file kvttabledelegate.cpp.

void KVTTableDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 244 of file kvttabledelegate.cpp.

void KVTTableDelegate::drawDisplay ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QRect &  rect,
const QString &  text 
) const [protected]

Definition at line 188 of file kvttabledelegate.cpp.

void KVTTableDelegate::drawFocus ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QRect &  rect 
) const [protected]

Definition at line 227 of file kvttabledelegate.cpp.


The documentation for this class was generated from the following files:
  • kvttabledelegate.h
  • kvttabledelegate.cpp

parley

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
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