BUG: need to invalidate filtering when using Qt 4.3+.

This commit is contained in:
Clinton Stimpson 2008-06-11 14:47:56 -04:00
parent 23bdb30e10
commit b31b420b65
1 changed files with 5 additions and 0 deletions

View File

@ -144,6 +144,11 @@ QModelIndex QCMakeCacheView::moveCursor(CursorAction act,
void QCMakeCacheView::setShowAdvanced(bool s)
{
#if QT_VERSION >= 040300
// new 4.3 api that needs to be called. what about an older Qt?
this->SearchFilter->invalidate();
#endif
this->AdvancedFilter->setFilterRegExp(
s ? AdvancedRegExp[1] : AdvancedRegExp[0]);
}