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
60 std::make_pair(
"X-Krita-PlatformId", QApplication::platformName()),
61 "Krita/PlatformPlugin");
66 QVariantList args = {QVariant::fromValue(nativeWindow)};
83#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
89 return "Surface color management is not supported on this platform\n";
92 return "Surface color management is disabled\n";
98#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
104 return "Surface color management is not supported on this platform\n";
107 return "Surface color management is disabled\n";
115 std::make_pair(
"X-Krita-PlatformId", QApplication::platformName()),
116 "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)