20 #ifndef SEARCHABLEFILETREEMODEL_H 21 #define SEARCHABLEFILETREEMODEL_H 23 #include "GUI/Utils/SearchableWidget/SearchableModel.h" 24 #include "Utils/Pimpl.h" 28 #include <QFileSystemModel> 45 void search_only_dirs(
bool b);
48 virtual QModelIndex getFirstRowIndexOf(
const QString& substr)
override;
49 virtual QModelIndex getNextRowIndexOf(
const QString& substr,
int cur_row,
const QModelIndex& parent=QModelIndex())
override;
50 virtual QModelIndex getPrevRowIndexOf(
const QString& substr,
int cur_row,
const QModelIndex& parent=QModelIndex())
override;
52 virtual int getNumberResults(
const QString &str)
override;
53 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
55 LibraryId library_id(
const QModelIndex& index)
const;
56 QString filepath_origin(
const QModelIndex& index)
const;
58 bool is_root(
const QModelIndex& index)
const;
61 void create_file_list(
const QString& substr);
65 #endif // SEARCHABLEFileTreeView_H Definition: SearchableModel.h:55
The SearchableFileTreeModel class.
Definition: DirectoryModel.h:35