From d29c3dc4c57ab3b15074aedaa4f267d774cecb64 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 19 Mar 2013 12:14:47 +0100 Subject: [PATCH] VcsBase: Don't use deprecated Core::Id(QString) Change-Id: Ie41e4c718dc84b2ceb2125f11359531bb3d4acf8 Reviewed-by: Tobias Hunger Reviewed-by: hjk --- src/plugins/vcsbase/vcsbaseclient.cpp | 2 +- src/plugins/vcsbase/vcsbaseplugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index dab58e816f1..a48ca8a7ac0 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -566,7 +566,7 @@ VcsBase::VcsBaseEditorWidget *VcsBaseClient::createVcsEditor(const QString &kind baseEditor = VcsBase::VcsBaseEditorWidget::getVcsBaseEditor(outputEditor); QTC_ASSERT(baseEditor, return 0); } else { - outputEditor = Core::EditorManager::openEditorWithContents(Core::Id(kind), &title, progressMsg); + outputEditor = Core::EditorManager::openEditorWithContents(Core::Id::fromString(kind), &title, progressMsg); outputEditor->document()->setProperty(registerDynamicProperty, dynamicPropertyValue); baseEditor = VcsBase::VcsBaseEditorWidget::getVcsBaseEditor(outputEditor); connect(baseEditor, SIGNAL(annotateRevisionRequested(QString,QString,int)), diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 66789ea3c84..bda5e4a3e93 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -512,7 +512,7 @@ struct VcsBasePluginPrivate }; VcsBasePluginPrivate::VcsBasePluginPrivate(const QString &submitEditorId) : - m_submitEditorId(submitEditorId), + m_submitEditorId(Core::Id::fromString(submitEditorId)), m_versionControl(0), m_actionState(-1), m_testSnapshotAction(0),