aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2024-11-14 13:41:00 +0100
committerAlessandro Portale <[email protected]>2024-11-22 14:54:56 +0000
commit12d55a5636f00280a2afa30da3202b5d3937f3d0 (patch)
treef43f19f5da255c3f8997a3b28d4b205c2bd9d86c /src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
parent46856f4869175e5a7a644a29b3d8fda47c576790 (diff)
Plugins: Change a few usages of PluginSpec::name to ::id
First, PluginSpec had only field "name". QtC 15 added "id", which became (a lowercase) copy of "name", and which is the future-proof field to use when identifying a plugin. This change turns usages of PluginSpec::name, which are not exclusively used for user display into PluginSpec::id. In case of id string comparisons, the plugin id string turns to lowercase. Change-Id: Ibae3b06a932158cd6946e1b29192b1db0dd78a40 Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectplugin.cpp')
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
index b92574bcbab..42d6b5b62df 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
@@ -74,7 +74,7 @@ static bool isQmlDesigner(const ExtensionSystem::PluginSpec *spec)
if (!spec)
return false;
- return spec->name().contains("QmlDesigner");
+ return spec->id().contains("qmldesigner");
}
static bool qmlDesignerEnabled()