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 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
|
||||
using namespace ScxmlEditor::Common;
|
||||
using namespace ScxmlEditor::PluginInterface;
|
||||
using namespace Utils;
|
||||
|
||||
namespace ScxmlEditor {
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ ScxmlEditorDocument::ScxmlEditorDocument(MainWidget *designWidget, QObject *pare
|
||||
{
|
||||
setMimeType(QLatin1String(ProjectExplorer::Constants::SCXML_MIMETYPE));
|
||||
setParent(parent);
|
||||
setId(Core::Id(ScxmlEditor::Constants::K_SCXML_EDITOR_ID));
|
||||
setId(Utils::Id(ScxmlEditor::Constants::K_SCXML_EDITOR_ID));
|
||||
|
||||
// Designer needs UTF-8 regardless of settings.
|
||||
setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
@@ -85,7 +85,7 @@ QWidget *ScxmlEditorStack::widgetForEditor(ScxmlTextEditor *xmlEditor)
|
||||
return widget(i);
|
||||
}
|
||||
|
||||
void ScxmlEditorStack::modeAboutToChange(Core::Id m)
|
||||
void ScxmlEditorStack::modeAboutToChange(Utils::Id m)
|
||||
{
|
||||
// Sync the editor when entering edit mode
|
||||
if (m == Core::Constants::MODE_EDIT) {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <coreplugin/id.h>
|
||||
#include <utils/id.h>
|
||||
|
||||
#include <QStackedWidget>
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
bool setVisibleEditor(Core::IEditor *xmlEditor);
|
||||
|
||||
private:
|
||||
void modeAboutToChange(Core::Id m);
|
||||
void modeAboutToChange(Utils::Id m);
|
||||
|
||||
QVector<ScxmlTextEditor*> m_editors;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user