diff options
author | Sankhesh Jhaveri <sankhesh.jhaveri@kitware.com> | 2020-12-17 23:05:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-05 16:03:30 (GMT) |
commit | f1de6f6682bedc10a9133ed2128f418d58fe1e19 (patch) | |
tree | abc56a538ab398d30e7bd9eaec5688662f8475f9 /Source/QtDialog/QCMakeCacheView.cxx | |
parent | 0f61fac6f028214d64ef6a407c6b98d4503ee2fe (diff) | |
download | CMake-f1de6f6682bedc10a9133ed2128f418d58fe1e19.zip CMake-f1de6f6682bedc10a9133ed2128f418d58fe1e19.tar.gz CMake-f1de6f6682bedc10a9133ed2128f418d58fe1e19.tar.bz2 |
cmake-gui: Support building against Qt6
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 22f5be1..7c9032e 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -47,7 +47,11 @@ protected: // check all strings for a match foreach (QString const& str, strs) { +#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) + if (str.contains(this->filterRegularExpression())) { +#else if (str.contains(this->filterRegExp())) { +#endif return true; } } |