29 #ifndef PLAYLISTITEMMODEL_H_ 30 #define PLAYLISTITEMMODEL_H_ 32 #include "Gui/Utils/SearchableWidget/SearchableModel.h" 33 #include "Utils/Playlist/PlaylistFwd.h" 34 #include "Utils/Pimpl.h" 73 RatingRole=Qt::UserRole + 1,
74 RadioModeRole=Qt::UserRole + 2,
75 DragIndexRole=Qt::UserRole + 3,
76 EntryLookRole=Qt::UserRole + 4
79 explicit Model(PlaylistPtr pl, QObject* parent=
nullptr);
83 void removeTracks(
const IndexSet& rows);
90 int currentTrack()
const;
91 void setCurrentTrack(
int row);
96 bool hasLocalMedia(
const IndexSet& rows)
const;
97 void setDragIndex(
int dragIndex);
98 void setRowHeight(
int rowHeight);
99 void changeRating(
const IndexSet& rows, Rating rating);
101 QModelIndex getRowIndexOf(
const QString& substr,
int row,
bool is_forward);
103 Qt::ItemFlags flags(
const QModelIndex& index=QModelIndex())
const override;
104 QVariant data(
const QModelIndex& index,
int role=Qt::DisplayRole)
const override;
105 bool setData(
const QModelIndex& index,
const QVariant &value,
int role)
override;
106 int rowCount(
const QModelIndex& parent=QModelIndex())
const override;
107 int columnCount(
const QModelIndex& parent=QModelIndex())
const override;
110 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
111 QModelIndexList searchResults(
const QString& substr)
override;
117 void playlistChanged(
int playlistIndex);
Definition: SearchableModel.h:55
The PlaylistItemModel class.
Definition: PlaylistModel.h:44
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
Definition: org_mpris_media_player2_adaptor.h:21