Mixxx

StarDelegate Class Reference

#include <stardelegate.h>

List of all members.

Public Member Functions

 StarDelegate (QWidget *parent=0)
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
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

Detailed Description

Definition at line 35 of file stardelegate.h.


Constructor & Destructor Documentation

StarDelegate::StarDelegate ( QWidget *  parent = 0) [inline]

Definition at line 40 of file stardelegate.h.


Member Function Documentation

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

called when the user starts editing an item:

Definition at line 77 of file stardelegate.cpp.

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

reimplemented from QItemDelegate and is called whenever the view needs to repaint an item

Definition at line 32 of file stardelegate.cpp.

Here is the call graph for this function:

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

called when an editor is created to initialize it with data from the model:

Definition at line 93 of file stardelegate.cpp.

Here is the call graph for this function:

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

called when editing is finished, to commit data from the editor to the model:

Definition at line 104 of file stardelegate.cpp.

Here is the call graph for this function:

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

eturns an item's preferred size

Definition at line 63 of file stardelegate.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines