21 #ifndef FILE_LIST_MODEL_H 22 #define FILE_LIST_MODEL_H 24 #include "GUI/Utils/SearchableWidget/SearchableModel.h" 25 #include "Utils/Pimpl.h" 27 #include <QStringList> 28 #include <QModelIndex> 39 bool check_row_for_searchstring(
int row,
const QString& substr)
const;
45 void set_parent_directory(LibraryId,
const QString& dir);
47 LibraryId library_id()
const;
48 QString parent_directory()
const;
50 QStringList files()
const;
52 QModelIndex getNextRowIndexOf(
const QString& substr,
int cur_row,
const QModelIndex& parent=QModelIndex())
override;
53 QModelIndex getPrevRowIndexOf(
const QString& substr,
int cur_row,
const QModelIndex& parent=QModelIndex())
override;
55 QVariant data(
const QModelIndex &index,
int role=Qt::DisplayRole)
const override;
57 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
59 QMimeData* mimeData(
const QModelIndexList &indexes)
const override;
60 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
Definition: FileListModel.h:32
Definition: SearchableModel.h:55