The StarDelegate class is used to draw stars for ratings.
More...
#include <stardelegate.h>
|
| | StarDelegate (Playlist *playlist, QMediaPlaylist *parent=0) |
| |
| QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index) const |
| |
| void | paint (QPainter *painter, 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 |
| |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| |
|
| bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| |
The StarDelegate class is used to draw stars for ratings.
| Enumerator |
|---|
| Editable |
|
| NoStarsYet |
|
| ReadOnly |
|
| StarDelegate::StarDelegate |
( |
Playlist * |
playlist, |
|
|
QMediaPlaylist * |
parent = 0 |
|
) |
| |
| QWidget * StarDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
, |
|
|
const QModelIndex & |
index |
|
) |
| const |
| bool StarDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
protected |
| void StarDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
| void StarDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
| void StarDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
| QSize StarDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
| int StarDelegate::maxStarCount = 5 |
|
static |
The documentation for this class was generated from the following files: