Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
More fixes for Qt5 build
Dmitry Kazakov5fc5d8fbc4ad
diff --git a/libs/pigment/KoColorTransferFunctions.h b/libs/pigment/KoColorTransferFunctions.hindex 088aa0549c..0f88482e0e 100644--- a/libs/pigment/KoColorTransferFunctions.h+++ b/libs/pigment/KoColorTransferFunctions.h@@ -120,7 +120,7 @@ ALWAYS_INLINE float applyHLGCurve(float x) noexcept} else {val = (sqrtf(3.0f * (val)));}- return qBound(0.0, val, 1.0);+ return qBound(0.0f, val, 1.0f);}ALWAYS_INLINE float removeHLGCurve(float x) noexceptdiff --git a/plugins/color/lcms2engine/tests/TestProfileGeneration.cpp b/plugins/color/lcms2engine/tests/TestProfileGeneration.cppindex 9ab20308fd..8089ccc352 100644--- a/plugins/color/lcms2engine/tests/TestProfileGeneration.cpp+++ b/plugins/color/lcms2engine/tests/TestProfileGeneration.cpp@@ -374,6 +374,9 @@ void TestProfileGeneration::testTransferFunctions()}+Q_DECLARE_METATYPE(ColorPrimaries)+Q_DECLARE_METATYPE(TransferCharacteristics)+void TestProfileGeneration::testCICPwriting_data(){QTest::addColumn<ColorPrimaries>("primaries");diff --git a/plugins/impex/libkra/tests/kis_kra_saver_test.cpp b/plugins/impex/libkra/tests/kis_kra_saver_test.cppindex 5d3c6f9fd3..74b1f6e20d 100644--- a/plugins/impex/libkra/tests/kis_kra_saver_test.cpp+++ b/plugins/impex/libkra/tests/kis_kra_saver_test.cpp@@ -571,6 +571,9 @@ void KisKraSaverTest::testExportToReadonly()TestUtil::testExportToReadonly(KraMimetype);}+Q_DECLARE_METATYPE(ColorPrimaries)+Q_DECLARE_METATYPE(TransferCharacteristics)+void KisKraSaverTest::testRoundTripCicp_data(){QTest::addColumn<ColorPrimaries>("primaries");diff --git a/plugins/impex/png/tests/kis_png_test.cpp b/plugins/impex/png/tests/kis_png_test.cppindex 9c0911f944..760f151fcf 100644--- a/plugins/impex/png/tests/kis_png_test.cpp+++ b/plugins/impex/png/tests/kis_png_test.cpp@@ -165,6 +165,9 @@ void KisPngTest::testSaveHDR()KoColorSpaceRegistry::instance()->p2020PQProfile()));}+Q_DECLARE_METATYPE(ColorPrimaries)+Q_DECLARE_METATYPE(TransferCharacteristics)+void KisPngTest::testRoundtripCicpIccProfile_data(){QTest::addColumn<ColorPrimaries>("primaries");