10#include <kpluginfactory.h>
11#include <QApplication>
18#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
30#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
32 auto fetchSurfaceColorManagedByOS = []() {
34 std::make_pair(
"X-Krita-PlatformId", QApplication::platformName()),
35 "Krita/PlatformPlugin");
39 return interface && interface->surfaceColorManagedByOS();
45 m_surfaceColorManagedByOS = fetchSurfaceColorManagedByOS();
55#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
64 std::make_pair(
"X-Krita-PlatformId", QApplication::platformName()),
65 "Krita/PlatformPlugin");
70 QVariantList args = {QVariant::fromValue(nativeWindow)};
87#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
93 return "Surface color management is not supported on this platform\n";
96 return "Surface color management is disabled\n";
102#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
108 return "Surface color management is not supported on this platform\n";
111 return "Surface color management is disabled\n";
119 std::make_pair(
"X-Krita-PlatformId", QApplication::platformName()),
120 "Krita/PlatformPlugin");
Q_GLOBAL_STATIC(KisStoragePluginRegistry, s_instance)
QString osPreferredColorSpaceReport() const
QString colorManagementReport() const
static KoPluginLoader * instance()
KPluginFactory * loadSinglePlugin(const std::vector< std::pair< QString, QString > > &predicates, const QString &serviceType)
#define KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cond, val)
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)