diff --git a/qcd_utils/qcd_view.cpp b/qcd_utils/qcd_view.cpp index 593ed9d..5ecea4c 100644 --- a/qcd_utils/qcd_view.cpp +++ b/qcd_utils/qcd_view.cpp @@ -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_);