forked from qt-creator/qt-creator
Core/Utils: Migrate further to Utils::Id
The coreplugin/id.h header is kept for downstream for now.
Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66
(cherry picked from commit 430a33dcd9)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -54,7 +54,6 @@
|
||||
#include <coreplugin/designmode.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/id.h>
|
||||
#include <coreplugin/modemanager.h>
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
@@ -102,6 +101,7 @@ using namespace QmlJS;
|
||||
using namespace QmlJS::AST;
|
||||
using namespace QmlJSTools;
|
||||
using namespace TextEditor;
|
||||
using namespace Utils;
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
@@ -1075,7 +1075,7 @@ QmlJSEditorFactory::QmlJSEditorFactory()
|
||||
: QmlJSEditorFactory(Constants::C_QMLJSEDITOR_ID)
|
||||
{}
|
||||
|
||||
QmlJSEditorFactory::QmlJSEditorFactory(Core::Id _id)
|
||||
QmlJSEditorFactory::QmlJSEditorFactory(Utils::Id _id)
|
||||
{
|
||||
setId(_id);
|
||||
setDisplayName(QCoreApplication::translate("OpenWith::Editors", "QMLJS Editor"));
|
||||
|
||||
@@ -146,7 +146,7 @@ class QMLJSEDITOR_EXPORT QmlJSEditorFactory : public TextEditor::TextEditorFacto
|
||||
{
|
||||
public:
|
||||
QmlJSEditorFactory();
|
||||
QmlJSEditorFactory(Core::Id id);
|
||||
QmlJSEditorFactory(Utils::Id id);
|
||||
|
||||
static void decorateEditor(TextEditor::TextEditorWidget *editor);
|
||||
};
|
||||
|
||||
@@ -648,7 +648,7 @@ void QmlJSEditorDocumentPrivate::cleanSemanticMarks()
|
||||
|
||||
} // Internal
|
||||
|
||||
QmlJSEditorDocument::QmlJSEditorDocument(Core::Id id)
|
||||
QmlJSEditorDocument::QmlJSEditorDocument(Utils::Id id)
|
||||
: d(new Internal::QmlJSEditorDocumentPrivate(this))
|
||||
{
|
||||
setId(id);
|
||||
|
||||
@@ -43,7 +43,7 @@ class QMLJSEDITOR_EXPORT QmlJSEditorDocument : public TextEditor::TextDocument
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QmlJSEditorDocument(Core::Id id);
|
||||
QmlJSEditorDocument(Utils::Id id);
|
||||
~QmlJSEditorDocument() override;
|
||||
|
||||
const QmlJSTools::SemanticInfo &semanticInfo() const;
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/id.h>
|
||||
#include <coreplugin/fileiconprovider.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
@@ -64,6 +63,7 @@
|
||||
using namespace QmlJSEditor::Constants;
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Core;
|
||||
using namespace Utils;
|
||||
|
||||
namespace QmlJSEditor {
|
||||
namespace Internal {
|
||||
|
||||
@@ -54,7 +54,7 @@ static bool isWarning(QmlJS::Severity::Enum kind)
|
||||
return false;
|
||||
}
|
||||
|
||||
static Core::Id cartegoryForSeverity(QmlJS::Severity::Enum kind)
|
||||
static Utils::Id cartegoryForSeverity(QmlJS::Severity::Enum kind)
|
||||
{
|
||||
return isWarning(kind) ? QMLJS_WARNING : QMLJS_ERROR;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ QmlTaskManager::QmlTaskManager()
|
||||
connect(&m_updateDelay, &QTimer::timeout, this, [this] { updateMessagesNow(); });
|
||||
}
|
||||
|
||||
static Tasks convertToTasks(const QList<DiagnosticMessage> &messages, const FilePath &fileName, Core::Id category)
|
||||
static Tasks convertToTasks(const QList<DiagnosticMessage> &messages, const FilePath &fileName, Utils::Id category)
|
||||
{
|
||||
Tasks result;
|
||||
foreach (const DiagnosticMessage &msg, messages) {
|
||||
@@ -71,7 +71,7 @@ static Tasks convertToTasks(const QList<DiagnosticMessage> &messages, const File
|
||||
return result;
|
||||
}
|
||||
|
||||
static Tasks convertToTasks(const QList<StaticAnalysis::Message> &messages, const FilePath &fileName, Core::Id category)
|
||||
static Tasks convertToTasks(const QList<StaticAnalysis::Message> &messages, const FilePath &fileName, Utils::Id category)
|
||||
{
|
||||
QList<DiagnosticMessage> diagnostics;
|
||||
foreach (const StaticAnalysis::Message &msg, messages)
|
||||
|
||||
Reference in New Issue
Block a user