MCPcopy Create free account
hub / github.com/KDE/krita / osPreferredColorSpaceReport

Method osPreferredColorSpaceReport

libs/ui/KisPlatformPluginInterfaceFactory.cpp:101–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101QString KisPlatformPluginInterfaceFactory::osPreferredColorSpaceReport(QWidget *widget)
102{
103#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
104 if (KisPlatformPluginInterfaceFactory::instance()->surfaceColorManagedByOS()) {
105 KisRootSurfaceInfoProxy proxy(widget);
106 KIS_SAFE_ASSERT_RECOVER_NOOP(proxy.isReady());
107 return proxy.osPreferredColorSpaceReport();
108 } else {
109 return "Surface color management is not supported on this platform\n";
110 }
111#else
112 Q_UNUSED(widget);
113 return "Surface color management is disabled\n";
114#endif
115}
116
117
118KisExtendedModifiersMapperPluginInterface* KisPlatformPluginInterfaceFactory::createExtendedModifiersMapper()

Callers

nothing calls this directly

Calls 3

Q_UNUSEDFunction · 0.85
isReadyMethod · 0.45

Tested by

no test coverage detected