Merge pull request #4170 from vlakoff/filtering-v3

Support wildcards for filtering torrent list and torrent content
This commit is contained in:
sledgehammer999 2015-11-29 18:13:58 -06:00
commit f4ef0633c9
3 changed files with 2 additions and 3 deletions

View file

@ -855,7 +855,7 @@ void PropertiesWidget::filteredFilesChanged() {
}
void PropertiesWidget::filterText(const QString& filter) {
PropListModel->setFilterFixedString(filter);
PropListModel->setFilterRegExp(QRegExp(filter, Qt::CaseInsensitive, QRegExp::WildcardUnix));
if (filter.isEmpty()) {
filesList->collapseAll();
filesList->expand(PropListModel->index(0, 0));