|
Sayonara Player
|
Public Types | |
| enum | Role { AlbumRole = Qt::UserRole , ArtistRole = Qt::UserRole + 1 , CoverRole = Qt::UserRole + 2 , YearRole = Qt::UserRole + 3 , DurationRole = Qt::UserRole + 4 } |
Public Slots | |
| void | setZoom (int zoom, QSize view_size) |
| void | reload () |
| void | clear () |
Public Member Functions | |
| CoverModel (QObject *parent, AbstractLibrary *library) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| int | columnCount (const QModelIndex &paren=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| QSize | itemSize () const |
| int | zoom () const |
| QString | mergeSuggestion (int index) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) override |
| QMimeData * | mimeData (const QModelIndexList &indexList) const override |
| int | searchPrevious () |
| int | searchNext () |
| int | initSearch (const QString &searchstring, int offsetIndex) |
Protected Member Functions | |
| const MetaDataList & | selectedMetadata () const override |
| int | mapIndexToId (int index) const override |
| Cover::Location | cover (const QModelIndexList &indexes) const override |
| int | itemCount () const override |
| QString | searchableString (int index, const QString &prefix) const override |
| QMap< QString, QString > | searchOptions () const override |
| AbstractLibrary * | library () |
| const AbstractLibrary * | library () const |
|
nodiscardoverrideprotectedvirtual |
Implements Library::ItemModel.
|
nodiscardoverrideprotectedvirtual |
Implements SearchModel.
|
nodiscardoverrideprotectedvirtual |
Implements Library::ItemModel.
|
nodiscardoverridevirtual |
Reimplemented from Library::ItemModel.
|
nodiscardoverrideprotectedvirtual |
Implements SearchModel.
|
nodiscardoverrideprotectedvirtual |
Reimplemented from SearchModel.
|
nodiscardoverrideprotectedvirtual |
Implements Library::ItemModel.