diff options
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 791e24c..5d313d3 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -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]); } |