diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-01-09 17:15:37 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-01-09 17:15:37 +0000 |
| commit | 35b2beb4fba153c952b00c6f9adf450520a9c6cf (patch) | |
| tree | 1145428b100d73ca23e1d3ea06163279aa31d4bd /src/plugins/General/library/librarymodel.h | |
| parent | d3b39e7538baf4d1194c519c5c988d87e10d539b (diff) | |
| download | qmmp-35b2beb4fba153c952b00c6f9adf450520a9c6cf.tar.gz qmmp-35b2beb4fba153c952b00c6f9adf450520a9c6cf.tar.bz2 qmmp-35b2beb4fba153c952b00c6f9adf450520a9c6cf.zip | |
library: added quick search
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9623 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/library/librarymodel.h')
| -rw-r--r-- | src/plugins/General/library/librarymodel.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/General/library/librarymodel.h b/src/plugins/General/library/librarymodel.h index a06365330..327e91629 100644 --- a/src/plugins/General/library/librarymodel.h +++ b/src/plugins/General/library/librarymodel.h @@ -46,12 +46,14 @@ public: QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; int columnCount(const QModelIndex &parent = QModelIndex()) const override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; + void setFilter(const QString &filter); void refresh(); + private: QList<QUrl> getUrls(const QModelIndex &index) const; - LibraryTreeItem *m_rootItem; + QString m_filter; }; #endif // LIBRARYMODEL_H |
