summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeCacheView.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index cfc1b11..13a8012 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -44,7 +44,9 @@ QCMakeCacheView::QCMakeCacheView(QWidget* p)
this->SearchFilter = new QSortFilterProxyModel(this);
this->SearchFilter->setSourceModel(this->AdvancedFilter);
this->SearchFilter->setFilterCaseSensitivity(Qt::CaseInsensitive);
+#if QT_VERSION >= 0x040300 // breaks search in Qt 4.2
this->SearchFilter->setFilterKeyColumn(-1); // all columns
+#endif
this->SearchFilter->setDynamicSortFilter(true);
this->setModel(this->SearchFilter);