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++
Fix symbols export from surfacecolorimetryapi library
Dmitry Kazakovb779fe2adbbf
diff --git a/libs/surfacecolormanagementapi/KisColorimetryUtils.h b/libs/surfacecolormanagementapi/KisColorimetryUtils.hindex 465dd86d68..9469719ea8 100644--- a/libs/surfacecolormanagementapi/KisColorimetryUtils.h+++ b/libs/surfacecolormanagementapi/KisColorimetryUtils.h@@ -13,6 +13,8 @@#include <boost/operators.hpp>#include <QDebug>+#include <kritasurfacecolormanagementapi_export.h>+namespace KisColorimetryUtils{@@ -26,7 +28,7 @@ struct XYZ;/*** xyY, with Y unspecified*/-struct xy {+struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT xy {double x;double y;@@ -35,7 +37,7 @@ struct xy {bool operator==(const xy &other) const;};-struct xyY {+struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT xyY {double x;double y;double Y;@@ -44,7 +46,7 @@ struct xyY {bool operator==(const xyY &other) const;};-struct XYZ {+struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT XYZ {double X;double Y;double Z;@@ -65,7 +67,7 @@ struct XYZ {* Red, green and blue define the chromaticities ("absolute colors") of the red, green and blue LEDs on a display in xy coordinates* White defines the the chromaticity of the reference white in xy coordinates*/-class Colorimetry+class KRITASURFACECOLORMANAGEMENTAPI_EXPORT Colorimetry{public:static const Colorimetry BT709;@@ -142,10 +144,10 @@ private:QMatrix4x4 m_fromXYZ;};-QDebug operator<<(QDebug debug, const xy &value);-QDebug operator<<(QDebug debug, const xyY &value);-QDebug operator<<(QDebug debug, const XYZ &value);-QDebug operator<<(QDebug debug, const Colorimetry &value);+KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const xy &value);+KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const xyY &value);+KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const XYZ &value);+KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const Colorimetry &value);} // namespace KisColorimetryUtilsdiff --git a/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.cpp b/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.cppindex d51cc8e0a2..dd8e4f0857 100644--- a/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.cpp+++ b/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.cpp@@ -6,6 +6,11 @@#include "KisOutputColorInfoInterface.h"+KisOutputColorInfoInterface::KisOutputColorInfoInterface(QObject *parent)+ : QObject(parent)+{+}+KisOutputColorInfoInterface::~KisOutputColorInfoInterface(){}diff --git a/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.h b/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.hindex 8e898c60b2..19e016decb 100644--- a/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.h+++ b/libs/surfacecolormanagementapi/surfacecolormanagement/KisOutputColorInfoInterface.h@@ -40,10 +40,11 @@ class QScreen;* emits \ref sigReadyChanged() with argument set to false, and restarts* the initialization process.*/-class KisOutputColorInfoInterface : public QObject+class KRITASURFACECOLORMANAGEMENTAPI_EXPORT KisOutputColorInfoInterface : public QObject{Q_OBJECTpublic:+ KisOutputColorInfoInterface(QObject *parent = nullptr);virtual ~KisOutputColorInfoInterface();/**diff --git a/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.cpp b/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.cppindex 6824514f63..6f7845d920 100644--- a/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.cpp+++ b/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.cpp@@ -6,8 +6,9 @@#include "KisSurfaceColorManagerInterface.h"-KisSurfaceColorManagerInterface::KisSurfaceColorManagerInterface(QWindow *window)- : m_window(window)+KisSurfaceColorManagerInterface::KisSurfaceColorManagerInterface(QWindow *window, QObject *parent)+ : QObject(parent)+ , m_window(window){}diff --git a/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.h b/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.hindex 4464e105b9..df0fe9532a 100644--- a/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.h+++ b/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorManagerInterface.h@@ -49,11 +49,11 @@ class QScreen;* emits \ref sigReadyChanged() with argument set to false, and restarts* the initialization process.*/-class KisSurfaceColorManagerInterface : public QObject+class KRITASURFACECOLORMANAGEMENTAPI_EXPORT KisSurfaceColorManagerInterface : public QObject{Q_OBJECTpublic:- KisSurfaceColorManagerInterface(QWindow *window);+ KisSurfaceColorManagerInterface(QWindow *window, QObject *parent = nullptr);virtual ~KisSurfaceColorManagerInterface();/**diff --git a/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorimetry.h b/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorimetry.hindex 2f73b90f12..0d24fb233b 100644--- a/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorimetry.h+++ b/libs/surfacecolormanagementapi/surfacecolormanagement/KisSurfaceColorimetry.h@@ -43,7 +43,7 @@ namespace KisSurfaceColorimetryrender_intent_relative_bpc = 4, // media-relative colorimetric + black point compensation};- struct Luminance : boost::equality_comparable<Luminance> {+ struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT Luminance : boost::equality_comparable<Luminance> {Luminance() = default;Luminance(uint32_t minLuminanceArg, uint32_t maxLuminanceArg, uint32_t referenceLuminanceArg): minLuminance(minLuminanceArg)@@ -63,7 +63,7 @@ namespace KisSurfaceColorimetry}};- struct MasteringLuminance : boost::equality_comparable<MasteringLuminance> {+ struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT MasteringLuminance : boost::equality_comparable<MasteringLuminance> {MasteringLuminance() = default;MasteringLuminance(uint32_t minLuminanceArg, uint32_t maxLuminanceArg): minLuminance(minLuminanceArg)@@ -83,7 +83,7 @@ namespace KisSurfaceColorimetry}};- struct ColorSpace : boost::equality_comparable<ColorSpace> {+ struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT ColorSpace : boost::equality_comparable<ColorSpace> {std::variant<NamedPrimaries, Colorimetry> primaries;// named transfer function or <exponent * 10000>std::variant<NamedTransferFunction, uint32_t> transferFunction;@@ -96,7 +96,7 @@ namespace KisSurfaceColorimetry}};- struct MasteringInfo : boost::equality_comparable<MasteringInfo> {+ struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT MasteringInfo : boost::equality_comparable<MasteringInfo> {Colorimetry primaries = Colorimetry::BT709;MasteringLuminance luminance;std::optional<uint32_t> maxCll;@@ -110,7 +110,7 @@ namespace KisSurfaceColorimetry}};- struct SurfaceDescription : boost::equality_comparable<SurfaceDescription> {+ struct KRITASURFACECOLORMANAGEMENTAPI_EXPORT SurfaceDescription : boost::equality_comparable<SurfaceDescription> {ColorSpace colorSpace;std::optional<MasteringInfo> masteringInfo;@@ -120,14 +120,14 @@ namespace KisSurfaceColorimetry}};- QDebug operator<<(QDebug debug, const NamedPrimaries &value);- QDebug operator<<(QDebug debug, const NamedTransferFunction &value);- QDebug operator<<(QDebug debug, const Luminance &value);- QDebug operator<<(QDebug debug, const MasteringLuminance &value);- QDebug operator<<(QDebug debug, const ColorSpace &value);- QDebug operator<<(QDebug debug, const MasteringInfo &value);- QDebug operator<<(QDebug debug, const SurfaceDescription &value);- QDebug operator<<(QDebug debug, const RenderIntent &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const NamedPrimaries &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const NamedTransferFunction &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const Luminance &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const MasteringLuminance &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const ColorSpace &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const MasteringInfo &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const SurfaceDescription &value);+ KRITASURFACECOLORMANAGEMENTAPI_EXPORT QDebug operator<<(QDebug debug, const RenderIntent &value);}#endif /* KISSURFACECOLORIMETRY_H */\ No newline at end of file