Fix build with Qt >= 6.12.0

Backported from:
https://github.com/musescore/muse_framework/commit/5f59d908e1b448a3a31af8f61aa929123f38fb7c

--- src/framework/extensions/extensionstypes.h.orig	2026-06-08 11:31:38 UTC
+++ src/framework/extensions/extensionstypes.h
@@ -84,32 +84,32 @@ static inline std::string toScContext(const String& ui
     return shortcuts::CTX_PROJECT_OPENED;
 }
 
-enum class Type {
+enum class ExtensionType {
     Undefined = 0,
     Form,       // Have UI, controls, user interaction
     Macros,     // Without UI, they just do some script
     Composite   // Composite with some UI and script
 };
 
-static inline Type typeFromString(const std::string& str)
+static inline ExtensionType typeFromString(const std::string& str)
 {
     if (str == "form") {
-        return Type::Form;
+        return ExtensionType::Form;
     } else if (str == "macros") {
-        return Type::Macros;
+        return ExtensionType::Macros;
     } else if (str == "composite") {
-        return Type::Composite;
+        return ExtensionType::Composite;
     }
-    return Type::Undefined;
+    return ExtensionType::Undefined;
 }
 
-static inline std::string typeToString(const Type& type)
+static inline std::string typeToString(const ExtensionType& type)
 {
     switch (type) {
-    case Type::Undefined: return "undefined";
-    case Type::Form: return "form";
-    case Type::Macros: return "macros";
-    case Type::Composite: return "composite";
+    case ExtensionType::Undefined: return "undefined";
+    case ExtensionType::Form: return "form";
+    case ExtensionType::Macros: return "macros";
+    case ExtensionType::Composite: return "composite";
     }
     return std::string();
 }
@@ -136,7 +136,7 @@ struct Action {
 
 struct Action {
     std::string code;
-    Type type = Type::Undefined;
+    ExtensionType type = ExtensionType::Undefined;
     bool modal = DEFAULT_MODAL;
     String title;
     ui::IconCode::Code icon = ui::IconCode::Code::NONE;
@@ -152,7 +152,7 @@ struct Action {
         ExecPointName execPoint = EXEC_DISABLED;
     };
 
-    bool isValid() const { return type != Type::Undefined && !code.empty(); }
+    bool isValid() const { return type != ExtensionType::Undefined && !code.empty(); }
 };
 
 inline actions::ActionQuery makeActionQueryBase(const Uri& uri)
@@ -219,7 +219,7 @@ struct Manifest {
 
     Uri uri;
     io::path_t path;
-    Type type = Type::Undefined;
+    ExtensionType type = ExtensionType::Undefined;
     String title;
     String description;
     String category;
@@ -233,7 +233,7 @@ struct Manifest {
 
     Config config;
 
-    bool isValid() const { return type != Type::Undefined && uri.isValid(); }
+    bool isValid() const { return type != ExtensionType::Undefined && uri.isValid(); }
 
     bool enabled() const
     {

--- src/framework/extensions/internal/extensionsprovider.cpp.orig	2026-06-08 11:31:38 UTC
+++ src/framework/extensions/internal/extensionsprovider.cpp
@@ -147,14 +147,14 @@ muse::Ret ExtensionsProvider::perform(const UriQuery& 
 {
     Action a = action(uri);
     switch (a.type) {
-    case Type::Form: {
+    case ExtensionType::Form: {
         UriQuery q = uri;
         if (!q.contains("modal")) {
             q.addParam("modal", Val(a.modal));
         }
         return interactive()->openSync(q).ret;
     } break;
-    case Type::Macros:
+    case ExtensionType::Macros:
         return run(uri);
     default:
         break;
--- src/framework/extensions/internal/legacy/extpluginsloader.cpp.orig	2026-06-08 11:31:38 UTC
+++ src/framework/extensions/internal/legacy/extpluginsloader.cpp
@@ -159,7 +159,7 @@ Manifest ExtPluginsLoader::parseManifest(const io::pat
 
     Manifest m;
     m.uri = makeUri(rootPath, path);
-    m.type = Type::Macros;
+    m.type = ExtensionType::Macros;
     m.apiversion = 1;
     m.legacyPlugin = true;
 
@@ -237,7 +237,7 @@ Manifest ExtPluginsLoader::parseManifest(const io::pat
         } else if (line.startsWith(u"pluginType:")) {
             String pluginType = dropQuotes(line.mid(11).trimmed());
             if (pluginType == "dialog" || pluginType == "dock") {
-                m.type = Type::Form;
+                m.type = ExtensionType::Form;
             }
             ++propertiesFound;
         } else if (line.startsWith(u"categoryCode:")) {
