Miam-Player  0.8.0
A nice music player
PlaylistItemDelegate Class Reference

The PlaylistItemDelegate class is a delegate used to display rows in a table. More...

#include <playlistitemdelegate.h>

Inheritance diagram for PlaylistItemDelegate:
MiamStyledItemDelegate

Public Types

enum  EditMode { Editable, NoStarsYet, ReadOnly }
 

Public Member Functions

 PlaylistItemDelegate (Playlist *playlist)
 
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index) const override
 
virtual bool eventFilter (QObject *object, QEvent *event) override
 
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
- Public Member Functions inherited from MiamStyledItemDelegate
 MiamStyledItemDelegate (QAbstractItemView *parent, bool fallback)
 

Protected Member Functions

virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Detailed Description

The PlaylistItemDelegate class is a delegate used to display rows in a table.

Author
Matthieu Bachelier

Member Enumeration Documentation

Enumerator
Editable 
NoStarsYet 
ReadOnly 

Constructor & Destructor Documentation

PlaylistItemDelegate::PlaylistItemDelegate ( Playlist playlist)
explicit

Member Function Documentation

QWidget * PlaylistItemDelegate::createEditor ( QWidget *  p,
const QStyleOptionViewItem &  ,
const QModelIndex &  index 
) const
overridevirtual

Redefined.

bool PlaylistItemDelegate::eventFilter ( QObject *  object,
QEvent *  event 
)
overridevirtual
void PlaylistItemDelegate::paint ( QPainter *  p,
const QStyleOptionViewItem &  opt,
const QModelIndex &  index 
) const
overrideprotectedvirtual

Redefined.

FIXME

Reimplemented from MiamStyledItemDelegate.

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

Redefined.


The documentation for this class was generated from the following files: