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/librarywidget.cpp | |
| 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/librarywidget.cpp')
| -rw-r--r-- | src/plugins/General/library/librarywidget.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/General/library/librarywidget.cpp b/src/plugins/General/library/librarywidget.cpp index ab7664d00..041ff0e13 100644 --- a/src/plugins/General/library/librarywidget.cpp +++ b/src/plugins/General/library/librarywidget.cpp @@ -50,5 +50,14 @@ LibraryWidget::~LibraryWidget() void LibraryWidget::refresh() { + m_ui->filterLineEdit->clear(); m_model->refresh(); } + +void LibraryWidget::on_filterLineEdit_textChanged(const QString &text) +{ + m_model->setFilter(text); + m_model->refresh(); + if(text.count() >= 3) + m_ui->treeView->expandAll(); +} |
