git-svn-id: svn://db.shs.com.ru/libs@928 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -113,7 +113,9 @@ void CDView::refresh() {
|
|||||||
if (!model_) {
|
if (!model_) {
|
||||||
model_ = new CDItemModel(type_);
|
model_ = new CDItemModel(type_);
|
||||||
proxy_ = new QSortFilterProxyModel();
|
proxy_ = new QSortFilterProxyModel();
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||||
proxy_->setRecursiveFilteringEnabled(true);
|
proxy_->setRecursiveFilteringEnabled(true);
|
||||||
|
#endif
|
||||||
proxy_->setFilterKeyColumn(-1);
|
proxy_->setFilterKeyColumn(-1);
|
||||||
proxy_->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
proxy_->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||||
proxy_->setSourceModel(model_);
|
proxy_->setSourceModel(model_);
|
||||||
|
|||||||
Reference in New Issue
Block a user