29 #ifndef LIBRARYITEMMODELALBUMS_H_ 30 #define LIBRARYITEMMODELALBUMS_H_ 32 #include "Helper/MetaData/Album.h" 33 #include "GUI/Library/Models/LibraryItemModel.h" 45 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
47 QVariant data(
const QModelIndex& index,
int role)
const override;
48 bool setData(
const QModelIndex& index,
const QVariant& value,
int role=Qt::DisplayRole)
override;
49 bool setData(
const QModelIndex& index,
const AlbumList& albums,
int role=Qt::DisplayRole);
51 void sort(
int column, Qt::SortOrder order)
override;
53 virtual QModelIndex getFirstRowIndexOf(QString substr)
override;
54 virtual QModelIndex getNextRowIndexOf(QString substr,
int row,
const QModelIndex& parent=QModelIndex())
override;
55 virtual QModelIndex getPrevRowIndexOf(QString substr,
int row,
const QModelIndex& parent=QModelIndex())
override;
57 virtual int get_id_by_row(
int row)
override;
58 virtual QString get_string(
int row)
const override;
The AlbumList class.
Definition: Album.h:72
Definition: LibraryItemModel.h:57
Definition: ColumnHeader.h:40
Definition: LibraryItemModelAlbums.h:38