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.
This commit is contained in:
Clinton Stimpson 2007-11-13 11:18:40 -05:00
parent 58f0cad472
commit b31d4f9d17
1 changed files with 2 additions and 0 deletions

View File

@ -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);