|
| ItemModel (QObject *parent, AbstractLibrary *library) |
|
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 |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QModelIndexList | searchResults (const QString &substr) override |
|
virtual int | searchableColumn () const =0 |
| the index of the searchable column. This is the column where the text is searched for a certain searchstring
|
|
virtual QString | searchableString (int row) const =0 |
| here, the searchable string can even be refined. Maybe we just want to search within a substring indicated by the row More...
|
|
virtual Id | mapIndexToId (int row) const =0 |
| return the current id for a given row More...
|
|
virtual Cover::Location | cover (const IndexSet &rows) const =0 |
| return the cover for multiple rows. if rows.size() > 1, an invalid, default constructed cover location is usually shown More...
|
|
virtual const MetaDataList & | selectedMetadata () const =0 |
| return the tracks which belong to the selections. If an album is selected for example, all tracks of that album should be returned More...
|
|
Gui::CustomMimeData * | customMimedata () const |
|
void | refreshData (int *rowCountBefore=nullptr, int *rowCountAfter=nullptr) |
|
virtual ExtraTriggerMap | getExtraTriggers () |
|
virtual ::Library::SearchModeMask | searchMode () const final |
|
The ItemModel is intended to abstract the various views. It supports searching, selections and a library.