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++
Add debug operator to KoColorProfileQuery.h
Wolthera van Hövell tot Westerflier9c45d687122c
diff --git a/libs/pigment/KoColorProfileQuery.h b/libs/pigment/KoColorProfileQuery.hindex 654db38e51..eb9c9ddc9c 100644--- a/libs/pigment/KoColorProfileQuery.h+++ b/libs/pigment/KoColorProfileQuery.h@@ -8,6 +8,7 @@#include <KoColorimetryUtils.h>#include <KoColorProfileConstants.h>+#include <QDebug>/*** @brief The KoColorProfileQuery struct@@ -45,4 +46,18 @@ struct KoColorProfileQuery {}};+inline QDebug operator<<(QDebug debug, const KoColorProfileQuery &value) {+ QDebugStateSaver saver(debug);+ debug.nospace() << "KoColorProfileQuery("+ << " WhitePoint:" << value.whitePoint+ << " rgbColorants:" << value.rgbColorants+ << " primariesType:" << value.primaries+ << " transferFunction:" << value.transfer+ << " isGreyscale:" << value.isGrayscale()+ << " isRgb:" << value.isRgb()+ << " isValid:" << value.isValid()+ << ")";+ return debug;+}+#endif // KOCOLORPROFILEQUERY_H