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++
Properly fix metatype generation for SvgTextShortcutInfo
Dmitry Kazakov0d7e9563f359
diff --git a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp b/plugins/tools/svgtexttool/SvgTextShortCuts.cppindex 01ed582a2b..3c7132f215 100644--- a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp+++ b/plugins/tools/svgtexttool/SvgTextShortCuts.cpp@@ -9,14 +9,6 @@#include <KisStaticInitializer.h>-class SvgTextShortcutInfo;-KIS_DECLARE_STATIC_INITIALIZER {- qRegisterMetaType<SvgTextShortcutInfo>("SvgTextShortcutInfo");-#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))- QMetaType::registerEqualsComparator<SvgTextShortcutInfo>();-#endif-}-/*** @brief The SvgTextShortcutInfo class* This@@ -77,7 +69,12 @@ struct SvgTextShortcutInfo : public boost::equality_comparable<SvgTextShortcutInQ_DECLARE_METATYPE(SvgTextShortcutInfo)-+KIS_DECLARE_STATIC_INITIALIZER {+ qRegisterMetaType<SvgTextShortcutInfo>("SvgTextShortcutInfo");+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))+ QMetaType::registerEqualsComparator<SvgTextShortcutInfo>();+#endif+}const QMap<QString, SvgTextShortcutInfo> textShortCuts = {{