Utils/all: Move mime constants into a central place

They are reasonably standardized, and generally usable cross-plugin,
so this can help to avoid a few cross-plugin compiletime dependencies.

Change-Id: Icb2b010c3e12dee69df54ab16f6f8e90d9cffba6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-10-19 17:17:37 +02:00
parent fc7c11fb65
commit 6685f0255d
68 changed files with 396 additions and 355 deletions

View File

@@ -18,6 +18,8 @@
#include <extensionsystem/iplugin.h>
#include <utils/mimeconstants.h>
using namespace ProjectExplorer;
namespace AutotoolsProjectManager::Internal {
@@ -34,7 +36,7 @@ class AutotoolsProject : public Project
{
public:
explicit AutotoolsProject(const Utils::FilePath &fileName)
: Project(Constants::MAKEFILE_MIMETYPE, fileName)
: Project(Utils::Constants::MAKEFILE_MIMETYPE, fileName)
{
setId(Constants::AUTOTOOLS_PROJECT_ID);
setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));