CompilerExplorer: Add Icon

Also adds function to FileIconProvider to register a full icon instead
of an overlay.

Change-Id: I2d9415a3b57fa50ae313ad4e52fc929b418f9708
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-09-27 13:33:50 +02:00
parent e5aaf90467
commit 4803c63423
7 changed files with 31 additions and 3 deletions

View File

@@ -18,6 +18,8 @@
#include <projectexplorer/jsonwizard/jsonwizardfactory.h>
#include <utils/fsengine/fileiconprovider.h>
#include <QMenu>
using namespace Core;
@@ -42,6 +44,9 @@ public:
settings().defaultDocument().toUtf8());
});
Utils::FileIconProvider::registerIconForMimeType(QIcon(":/compilerexplorer/logos/ce.ico"),
"application/compiler-explorer");
ProjectExplorer::JsonWizardFactory::addWizardPath(":/compilerexplorer/wizard/");
ActionContainer *mtools = ActionManager::actionContainer(Core::Constants::M_TOOLS);