Support wildcards for filtering torrent list and torrent content

This commit is contained in:
vlakoff
2015-11-26 19:02:43 +01:00
committed by sledgehammer999
parent c46f2ba097
commit 9be449dd7f
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));