[cmake-commits] clinton committed QCMakeCacheView.cxx 1.17 1.18
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Nov 13 11:18:42 EST 2007
Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv20926
Modified Files:
QCMakeCacheView.cxx
Log Message:
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.
Index: QCMakeCacheView.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/QCMakeCacheView.cxx,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- QCMakeCacheView.cxx 13 Nov 2007 05:17:10 -0000 1.17
+++ QCMakeCacheView.cxx 13 Nov 2007 16:18:40 -0000 1.18
@@ -44,7 +44,9 @@
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);
More information about the Cmake-commits
mailing list