From 6bba61bf4f147df5cb56098aa4dc1be2d865cb5b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 16 Jul 2017 11:03:17 +0000 Subject: qsui: added quick search to file system browser git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7303 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/qsui/filesystembrowser.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/plugins/Ui/qsui/filesystembrowser.h') diff --git a/src/plugins/Ui/qsui/filesystembrowser.h b/src/plugins/Ui/qsui/filesystembrowser.h index debc02566..f64606bba 100644 --- a/src/plugins/Ui/qsui/filesystembrowser.h +++ b/src/plugins/Ui/qsui/filesystembrowser.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013 by Ilya Kotov * + * Copyright (C) 2013-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -26,6 +26,9 @@ class QFileSystemModel; class QModelIndex; class QListView; +class QAction; +class QLineEdit; +class FileSystemFilterProxyModel; namespace Utils { class ElidingLabel; @@ -48,13 +51,17 @@ private slots: void onListViewActivated(const QModelIndex &index); void addToPlayList(); void selectDirectory(); + void onFilterLineEditTextChanged(const QString &str); private: void setCurrentDirectory(const QString &path); bool m_update; Utils::ElidingLabel *m_label; - QFileSystemModel *m_model; + QFileSystemModel *m_fileSystemModel; QListView *m_listView; + FileSystemFilterProxyModel *m_proxyModel; + QLineEdit *m_filterLineEdit; + QAction *m_showFilterAction; }; -- cgit v1.2.3-13-gbd6f