diff options
author | Brad King <brad.king@kitware.com> | 2021-03-04 16:25:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-04 16:25:54 (GMT) |
commit | 9ec50ff157f064ba07c9e1229f84a8cd16fff87d (patch) | |
tree | 6529c8fcaacd693ee5244ec12952ee7175bc43e5 /Source/QtDialog/QCMakeCacheView.cxx | |
parent | 12a139f2b6610e688be3d2bd317d46f0ce6ddf1f (diff) | |
download | CMake-9ec50ff157f064ba07c9e1229f84a8cd16fff87d.zip CMake-9ec50ff157f064ba07c9e1229f84a8cd16fff87d.tar.gz CMake-9ec50ff157f064ba07c9e1229f84a8cd16fff87d.tar.bz2 |
cmake-gui: Restore search bar case insensitivity
Since these changes:
* commit f1de6f6682 (cmake-gui: Support building against Qt6,
2020-12-17, v3.20.0-rc1~205^2~7)
* commit 134d69121e (cmake-gui: Restore search bar for cache view and
environment dialog, 2021-02-22, v3.20.0-rc2~12^2)
the search bar is no longer case insensitive when using Qt 5.12.[0-1],
and possibly some later versions. It works as of Qt 5.15 though, so
update our version check accordingly.
Fixes: #21884
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 536b92d..994df78 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -47,7 +47,7 @@ protected: // check all strings for a match foreach (QString const& str, strs) { -#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) if (str.contains(this->filterRegularExpression())) { #else if (str.contains(this->filterRegExp())) { @@ -170,7 +170,7 @@ bool QCMakeCacheView::showAdvanced() const void QCMakeCacheView::setSearchFilter(const QString& s) { -#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) this->SearchFilter->setFilterRegularExpression(s); #else this->SearchFilter->setFilterFixedString(s); |