summaryrefslogtreecommitdiff
path: root/src/plugins/mercurial/mercurialclient.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-09-02 12:25:20 +0200
committerhjk <hjk121@nokiamail.com>2014-09-02 16:48:13 +0200
commit7224ccb2e7bab5b7bca88cbcd41829fdf3c25165 (patch)
tree6c3bc438bf4e68ce06cf5afd8950d235b0bd391e /src/plugins/mercurial/mercurialclient.cpp
parentcae737e6291d8349602cd9bd2e109abd0292e5af (diff)
downloadqt-creator-7224ccb2e7bab5b7bca88cbcd41829fdf3c25165.tar.gz
Editors: Automatically add editor/document id to context and use that
instead of manually adding a context everywhere. Change-Id: I4336015a6d19349171a255e949da89b0013d6700 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/mercurial/mercurialclient.cpp')
-rw-r--r--src/plugins/mercurial/mercurialclient.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/mercurial/mercurialclient.cpp b/src/plugins/mercurial/mercurialclient.cpp
index 4d97982499..987334d7dd 100644
--- a/src/plugins/mercurial/mercurialclient.cpp
+++ b/src/plugins/mercurial/mercurialclient.cpp
@@ -286,7 +286,7 @@ void MercurialClient::incoming(const QString &repositoryRoot, const QString &rep
const QString title = tr("Hg incoming %1").arg(id);
- VcsBaseEditorWidget *editor = createVcsEditor(Constants::DIFFLOG, title, repositoryRoot,
+ VcsBaseEditorWidget *editor = createVcsEditor(Constants::DIFFLOG_ID, title, repositoryRoot,
true, "incoming", id);
VcsCommand *cmd = createCommand(repository, editor);
enqueueJob(cmd, args);
@@ -300,7 +300,7 @@ void MercurialClient::outgoing(const QString &repositoryRoot)
const QString title = tr("Hg outgoing %1").
arg(QDir::toNativeSeparators(repositoryRoot));
- VcsBaseEditorWidget *editor = createVcsEditor(Constants::DIFFLOG, title, repositoryRoot, true,
+ VcsBaseEditorWidget *editor = createVcsEditor(Constants::DIFFLOG_ID, title, repositoryRoot, true,
"outgoing", repositoryRoot);
VcsCommand *cmd = createCommand(repositoryRoot, editor);
@@ -367,11 +367,11 @@ Core::Id MercurialClient::vcsEditorKind(VcsCommandTag cmd) const
{
switch (cmd) {
case AnnotateCommand:
- return Constants::ANNOTATELOG;
+ return Constants::ANNOTATELOG_ID;
case DiffCommand:
- return Constants::DIFFLOG;
+ return Constants::DIFFLOG_ID;
case LogCommand:
- return Constants::FILELOG;
+ return Constants::FILELOG_ID;
default:
return Core::Id();
}