git-svn-id: svn://db.shs.com.ru/libs@928 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2020-04-02 18:47:32 +00:00
parent c1a435903d
commit e223fd89ee

View File

@@ -113,7 +113,9 @@ void CDView::refresh() {
if (!model_) {
model_ = new CDItemModel(type_);
proxy_ = new QSortFilterProxyModel();
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
proxy_->setRecursiveFilteringEnabled(true);
#endif
proxy_->setFilterKeyColumn(-1);
proxy_->setFilterCaseSensitivity(Qt::CaseInsensitive);
proxy_->setSourceModel(model_);