![]() |
Mixxx
|
#include <stardelegate.h>
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 |
Definition at line 35 of file stardelegate.h.
| StarDelegate::StarDelegate | ( | QWidget * | parent = 0 | ) | [inline] |
Definition at line 40 of file stardelegate.h.
| 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.

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

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

| QSize StarDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, |
| const QModelIndex & | index | ||
| ) | const |
eturns an item's preferred size
Definition at line 63 of file stardelegate.cpp.
