summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeCacheView.cxx
diff options
context:
space:
mode:
authorSankhesh Jhaveri <sankhesh.jhaveri@kitware.com>2021-02-22 22:11:37 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-22 22:56:59 (GMT)
commit134d69121e893426db2ea67a6bc6e22a749b6529 (patch)
tree8a37a5a7ef26e6ffa867b18282722742fb81ffa7 /Source/QtDialog/QCMakeCacheView.cxx
parente9efa04d8da2b17f34a70d7b4be0d91a1c7574dc (diff)
downloadCMake-134d69121e893426db2ea67a6bc6e22a749b6529.zip
CMake-134d69121e893426db2ea67a6bc6e22a749b6529.tar.gz
CMake-134d69121e893426db2ea67a6bc6e22a749b6529.tar.bz2
cmake-gui: Restore search bar for cache view and environment dialog
This was broken by commit f1de6f6682 (cmake-gui: Support building against Qt6, 2020-12-17, v3.20.0-rc1~205^2~7). Fixes: #21850
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index 7c9032e..536b92d 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -170,7 +170,11 @@ bool QCMakeCacheView::showAdvanced() const
void QCMakeCacheView::setSearchFilter(const QString& s)
{
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
+ this->SearchFilter->setFilterRegularExpression(s);
+#else
this->SearchFilter->setFilterFixedString(s);
+#endif
}
QCMakeCacheModel::QCMakeCacheModel(QObject* p)