Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Don't add surface format on macOS Qt5

Ivan Yossi18f10ffe3f39
diff --git a/plugins/dockers/textproperties/TextPropertiesDock.cpp b/plugins/dockers/textproperties/TextPropertiesDock.cpp
index 663153ec6d..28d233dae7 100644
--- a/plugins/dockers/textproperties/TextPropertiesDock.cpp
+++ b/plugins/dockers/textproperties/TextPropertiesDock.cpp
@@ -135,6 +135,7 @@ TextPropertiesDock::TextPropertiesDock()
{
m_quickWidget = new QQuickWidget(this);
+#if !defined(Q_OS_MACOS) || QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QSurfaceFormat format;
{
@@ -151,6 +152,7 @@ TextPropertiesDock::TextPropertiesDock()
}
m_quickWidget->setFormat(format);
+#endif
setWidget(m_quickWidget);
setEnabled(true);