diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-13 16:18:40 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-13 16:18:40 (GMT) |
commit | b31d4f9d17f4c2e5f337d3183c55c152b14677e9 (patch) | |
tree | aacda6376470efcf230bfe7818590ffd57cd11be | |
parent | 58f0cad472e8f23563bc51ae579f15f2d02f50a9 (diff) | |
download | CMake-b31d4f9d17f4c2e5f337d3183c55c152b14677e9.zip CMake-b31d4f9d17f4c2e5f337d3183c55c152b14677e9.tar.gz CMake-b31d4f9d17f4c2e5f337d3183c55c152b14677e9.tar.bz2 |
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.
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 2 |
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); |