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++
Disable managing the reference images for qt5.
Wolthera van Hövell tot Westerflier6cb1739add9f
diff --git a/libs/ui/KisReferenceImage.cpp b/libs/ui/KisReferenceImage.cppindex 5f999a4ea0..56d18518b3 100644--- a/libs/ui/KisReferenceImage.cpp+++ b/libs/ui/KisReferenceImage.cpp@@ -96,6 +96,8 @@ struct KisReferenceImage::Private : public QSharedDataif (image.colorSpace().colorModel() != QColorSpace::ColorModel::Rgb || !image.colorSpace().isValid()) {image.convertToColorSpace(QColorSpace(QColorSpace::SRgb));}+#else+ image.convertToColorSpace(QColorSpace(QColorSpace::SRgb));#endifreturn (!image.isNull());@@ -267,11 +269,9 @@ void KisReferenceImage::paint(QPainter &gc) const// Color conversion.QImage *targetD = dynamic_cast<QImage*>(gc.device());-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)- const bool getTargetCs = (targetD);-#else+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)const bool getTargetCs = (targetD && targetD->colorSpace().colorModel() == QColorSpace::ColorModel::Rgb);-#endif+const KoColorProfile *targetP = getTargetCs? KoColorSpaceRegistry::instance()->profileForQColorSpace(targetD->colorSpace()): KoColorSpaceRegistry::instance()->p709SRGBProfile();const KoColorProfile *sourceP = KoColorSpaceRegistry::instance()->profileForQColorSpace(d->image.colorSpace());if (targetP != sourceP) {@@ -285,6 +285,7 @@ void KisReferenceImage::paint(QPainter &gc) constprescaled.setColorSpace(QColorSpace(QColorSpace::SRgb));}}+#endifif (scale > 1.0) {// enlarging should be done without smooth transformation