[graphics/krita] libs/image/tests: ifdef test that only builds with qt6.

Wolthera van Hövell tot Westerflier <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4ba3fc98d99807e1f8996c2f5cc2989f4c441876 by Wolthera van Hövell tot Westerflier.
Committed on 17/08/2026 at 11:36.
Pushed by woltherav into branch 'master'.

ifdef test that only builds with qt6.

M  +2    -0    libs/image/tests/kis_image_test.cpp

https://invent.kde.org/graphics/krita/-/commit/4ba3fc98d99807e1f8996c2f5cc2989f4c441876

diff --git a/libs/image/tests/kis_image_test.cpp b/libs/image/tests/kis_image_test.cpp
index 515f9553259..2d5895c1ad4 100644
--- a/libs/image/tests/kis_image_test.cpp
+++ b/libs/image/tests/kis_image_test.cpp
@@ -1381,6 +1381,7 @@ void KisImageTest::testHdrReferenceWhite_data()
 
 void KisImageTest::testHdrReferenceWhite()
 {
+#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
     auto optionalFromDouble = [] (double value) {
         return value >= 0 ? std::make_optional(value) : std::optional<double>();
     };
@@ -1409,6 +1410,7 @@ void KisImageTest::testHdrReferenceWhite()
     image->waitForDone();
 
     QCOMPARE(image->hdrReferenceWhiteLightLevel(), optionalFromDouble(expectedDstHdrReferenceWhite));
+#endif
 }
 
 void KisImageTest::testHdrReferenceWhiteCloning()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.