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 Qt6 compilation in SvgTextShortCuts.cpp
Roald Clark8ca09c1b94ed
diff --git a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp b/plugins/tools/svgtexttool/SvgTextShortCuts.cppindex 24434b6b7b..01ed582a2b 100644--- a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp+++ b/plugins/tools/svgtexttool/SvgTextShortCuts.cpp@@ -10,7 +10,6 @@#include <KisStaticInitializer.h>class SvgTextShortcutInfo;-Q_DECLARE_METATYPE(SvgTextShortcutInfo)KIS_DECLARE_STATIC_INITIALIZER {qRegisterMetaType<SvgTextShortcutInfo>("SvgTextShortcutInfo");#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))@@ -76,6 +75,8 @@ struct SvgTextShortcutInfo : public boost::equality_comparable<SvgTextShortcutIn}};+Q_DECLARE_METATYPE(SvgTextShortcutInfo)+const QMap<QString, SvgTextShortcutInfo> textShortCuts = {