21 #ifndef FILE_LIST_MODEL_H 22 #define FILE_LIST_MODEL_H 24 #include "GUI/Helper/SearchableWidget/AbstractSearchModel.h" 26 #include <QStringList> 27 #include <QModelIndex> 40 void set_parent_directory(
const QString& dir);
41 QStringList get_files()
const;
43 QModelIndex getFirstRowIndexOf(
const QString& substr)
override;
44 QModelIndex getNextRowIndexOf(
const QString& substr,
int cur_row,
const QModelIndex& parent=QModelIndex())
override;
45 QModelIndex getPrevRowIndexOf(
const QString& substr,
int cur_row,
const QModelIndex& parent=QModelIndex())
override;
48 QVariant data(
const QModelIndex &index,
int role)
const override;
50 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
52 QMimeData* mimeData(
const QModelIndexList &indexes)
const override;
53 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
Definition: FileListModel.h:31
Definition: AbstractSearchModel.h:55
Definition: org_mpris_media_player2_adaptor.h:21