aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/qsui/filesystembrowser.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-07-16 11:03:17 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-07-16 11:03:17 +0000
commit6bba61bf4f147df5cb56098aa4dc1be2d865cb5b (patch)
tree8db7d42071fc86fb1224507331784c730b1953d2 /src/plugins/Ui/qsui/filesystembrowser.h
parent73cab9610ae3686d8f0d84df1255f0f5bf70182d (diff)
downloadqmmp-6bba61bf4f147df5cb56098aa4dc1be2d865cb5b.tar.gz
qmmp-6bba61bf4f147df5cb56098aa4dc1be2d865cb5b.tar.bz2
qmmp-6bba61bf4f147df5cb56098aa4dc1be2d865cb5b.zip
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
Diffstat (limited to 'src/plugins/Ui/qsui/filesystembrowser.h')
-rw-r--r--src/plugins/Ui/qsui/filesystembrowser.h11
1 files changed, 9 insertions, 2 deletions
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;
};