summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2008-06-11 18:47:56 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2008-06-11 18:47:56 (GMT)
commitb31b420b65a13db599af3fe24d4d5e92d5d19c7b (patch)
treee1faa1773e59f279f913851a9c5b3a6dd574467a /Source/QtDialog
parent23bdb30e1006dfbcf5dcc2b32e1ffe7a5342d0d8 (diff)
downloadCMake-b31b420b65a13db599af3fe24d4d5e92d5d19c7b.zip
CMake-b31b420b65a13db599af3fe24d4d5e92d5d19c7b.tar.gz
CMake-b31b420b65a13db599af3fe24d4d5e92d5d19c7b.tar.bz2
BUG: need to invalidate filtering when using Qt 4.3+.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx5
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]);
}