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 building of the XCB backend switch on Qt5
Dmitry Kazakovc249381d0d75
diff --git a/libs/ui/opengl/kis_opengl.cpp b/libs/ui/opengl/kis_opengl.cppindex bf7b7b9b26..c0465c2bf8 100644--- a/libs/ui/opengl/kis_opengl.cpp+++ b/libs/ui/opengl/kis_opengl.cpp@@ -60,6 +60,15 @@ typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);typedef void (QOPENGLF_APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);#endif+#include <KisStaticInitializer.h>++KIS_DECLARE_STATIC_INITIALIZER {+ qRegisterMetaType<KisOpenGL::XcbGLProviderProtocol>("KisOpenGL::XcbGLProviderProtocol");+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))+ QMetaType::registerEqualsComparator<KisOpenGL::XcbGLProviderProtocol>();+#endif+}+namespace{// config option, set manually by main()diff --git a/libs/ui/opengl/kis_opengl.h b/libs/ui/opengl/kis_opengl.hindex 958c057ca0..e0616db72b 100644--- a/libs/ui/opengl/kis_opengl.h+++ b/libs/ui/opengl/kis_opengl.h@@ -146,4 +146,6 @@ private:Q_DECLARE_OPERATORS_FOR_FLAGS(KisOpenGL::OpenGLRenderers);#endif+Q_DECLARE_METATYPE(KisOpenGL::XcbGLProviderProtocol)+#endif // KIS_OPENGL_H_