From b31d4f9d17f4c2e5f337d3183c55c152b14677e9 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 13 Nov 2007 11:18:40 -0500 Subject: BUG: The search is set to apply to all columns, but in Qt 4.2, that breaks the search entirely. Search on the first column only when using Qt 4.2. --- Source/QtDialog/QCMakeCacheView.cxx | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v0.12