1 #ifndef SOUNDWAVE_PLAYLIST_MODEL_H
2 #define SOUNDWAVE_PLAYLIST_MODEL_H
4 #include <QAbstractItemModel>
12 class PlaylistModel
: public QAbstractItemModel
17 PlaylistModel( QObject
*parent
= 0 );
19 virtual QVariant
data( const QModelIndex
& index
, int role
= Qt::DisplayRole
) const;
20 virtual QModelIndex
index( int row
, int col
, const QModelIndex
& parent
= QModelIndex()) const;
22 virtual QModelIndex
parent( const QModelIndex
& index
) const;
23 virtual int rowCount( const QModelIndex
& parent
= QModelIndex()) const;
24 virtual int colCount( const QModelIndex
& parent
= QModelIndex()) const;
27 QList
<PlaylistItem
> items
;