20 #ifndef SEARCHABLEFILETREEMODEL_H 21 #define SEARCHABLEFILETREEMODEL_H 23 #include "Gui/Utils/SearchableWidget/SearchableModel.h" 24 #include "Utils/Pimpl.h" 27 #include <QFileSystemModel> 28 #include <QSortFilterProxyModel> 42 public QSortFilterProxyModel
51 explicit Model(QObject* parent=
nullptr);
54 QModelIndex setDataSource(LibraryId libraryId);
55 QModelIndex setDataSource(
const QString& path);
56 LibraryId libraryDataSource()
const;
58 QString filePath(
const QModelIndex& index);
59 QModelIndex indexOfPath(
const QString& path)
const;
61 void setFilter(
const QString& filter);
63 int columnCount(
const QModelIndex& parent)
const override;
66 void filterTimerTimeout();
69 using QSortFilterProxyModel::setFilterRegExp;
70 using QSortFilterProxyModel::setFilterWildcard;
71 using QSortFilterProxyModel::setFilterFixedString;
73 bool filterAcceptsRow(
int sourceRow,
const QModelIndex& sourceParent)
const override;
77 #endif // SEARCHABLEFileTreeView_H The SearchableFileTreeModel class.
Definition: DirectoryModel.h:41
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:30