defuze.me
Client
|
Public Types | |
enum | DropAction { INVALID_DROP_ACTION, ADD_TO_NORMAL_PLAYLIST, ADD_TO_DYNAMIC_PLAYLIST, CREATE_NORMAL_PLAYLIST, CREATE_DYNAMIC_PLAYLIST } |
Public Slots | |
void | dataHaveChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
void | dataDeleted () |
Signals | |
void | playlistContentChanged (int playlistId) |
void | playlistNameChanged (int playlistId, QString newName) |
void | playlistRemoved (int playlistId) |
Public Member Functions | |
ListsModel (ListsPlugin *lists) | |
void | setupModelData () |
ListsItem * | getRootItem () const |
QStringList | getDropTypesForItem (ListsItem *item) const |
DropAction | getDropActionsForItem (ListsItem *item, const QString &mimeType="default") const |
bool | insertRows (int position, int rows, const QModelIndex &parent) |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | data (const QModelIndex &index, int role) const |
ListsItem * | getItem (const QModelIndex &index) const |
Public Attributes | |
ListsItem * | normalItem |
ListsItem * | dynamicItem |
QModelIndex | lastDropIndex |
Definition at line 23 of file listsmodel.hpp.