From 35b2beb4fba153c952b00c6f9adf450520a9c6cf Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 9 Jan 2021 17:15:37 +0000 Subject: library: added quick search git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9623 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/library/librarymodel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/General/library/librarymodel.h') 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 getUrls(const QModelIndex &index) const; - LibraryTreeItem *m_rootItem; + QString m_filter; }; #endif // LIBRARYMODEL_H -- cgit v1.2.3-13-gbd6f