diff options
author | Eike Ziller <eike.ziller@qt.io> | 2024-04-30 13:59:03 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2024-05-06 09:46:29 +0000 |
commit | 3249b106e5eae2fcfa416c94d77aa3ffe31dc2cb (patch) | |
tree | 68a331646120f79be4ea92c8e7f79e11bfc47820 /src/plugins/compilerexplorer | |
parent | 6656204b1efb76abda7fe6add98bbdeaa478e1f0 (diff) |
Make it possible to add wizards paths via plugin meta data
That makes it easy with Lua plugins, and is useful on the C++ side as
well.
Change-Id: I660956bed47e4c1e27a001ad8999d6701cda86ee
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/compilerexplorer')
-rw-r--r-- | src/plugins/compilerexplorer/CompilerExplorer.json.in | 3 | ||||
-rw-r--r-- | src/plugins/compilerexplorer/compilerexplorerplugin.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/compilerexplorer/CompilerExplorer.json.in b/src/plugins/compilerexplorer/CompilerExplorer.json.in index 108bd6a5df6..db771bd9f98 100644 --- a/src/plugins/compilerexplorer/CompilerExplorer.json.in +++ b/src/plugins/compilerexplorer/CompilerExplorer.json.in @@ -26,5 +26,6 @@ " <glob pattern='*.qtce'/>", " </mime-type>", "</mime-info>" - ] + ], + "JsonWizardPaths" : [":/compilerexplorer/wizard/"] } diff --git a/src/plugins/compilerexplorer/compilerexplorerplugin.cpp b/src/plugins/compilerexplorer/compilerexplorerplugin.cpp index 1cfcec89d8f..48920561b4a 100644 --- a/src/plugins/compilerexplorer/compilerexplorerplugin.cpp +++ b/src/plugins/compilerexplorer/compilerexplorerplugin.cpp @@ -37,8 +37,6 @@ public: FileIconProvider::registerIconForMimeType(QIcon(":/compilerexplorer/logos/ce.ico"), "application/compiler-explorer"); - ProjectExplorer::JsonWizardFactory::addWizardPath(":/compilerexplorer/wizard/"); - const Id menuId = "Tools.CompilerExplorer"; MenuBuilder(menuId) .setTitle(Tr::tr("Compiler Explorer")) |