From 5ebe34a33205199bd755283ed0a8c30870dadab8 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 17 Jun 2020 23:50:30 +0300 Subject: VCS: Add vcsDescribe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Already exists in all implementations, but there was no common declaration. Change-Id: Ieb3d10d1936c207722b5001712bce41e8114dcdc Reviewed-by: André Hartmann --- src/plugins/bazaar/bazaarplugin.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/plugins/bazaar') diff --git a/src/plugins/bazaar/bazaarplugin.cpp b/src/plugins/bazaar/bazaarplugin.cpp index c78605db074..1b0b43d21f8 100644 --- a/src/plugins/bazaar/bazaarplugin.cpp +++ b/src/plugins/bazaar/bazaarplugin.cpp @@ -161,6 +161,7 @@ public: bool vcsMove(const QString &from, const QString &to) final; bool vcsCreateRepository(const QString &directory) final; void vcsAnnotate(const QString &file, int line) final; + void vcsDescribe(const QString &source, const QString &id) final { m_client.view(source, id); } Core::ShellCommand *createInitialCheckoutCommand(const QString &url, const Utils::FilePath &baseDirectory, @@ -203,8 +204,6 @@ public: void createDirectoryActions(const Core::Context &context); void createRepositoryActions(const Core::Context &context); - void describe(const QString &source, const QString &id) { m_client.view(source, id); } - // Variables BazaarSettings m_settings; BazaarClient m_client{&m_settings}; @@ -238,19 +237,19 @@ public: VcsEditorFactory logEditorFactory { &logEditorParameters, [] { return new BazaarEditorWidget; }, - std::bind(&BazaarPluginPrivate::describe, this, _1, _2) + std::bind(&BazaarPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory annotateEditorFactory { &annotateEditorParameters, [] { return new BazaarEditorWidget; }, - std::bind(&BazaarPluginPrivate::describe, this, _1, _2) + std::bind(&BazaarPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory diffEditorFactory { &diffEditorParameters, [] { return new BazaarEditorWidget; }, - std::bind(&BazaarPluginPrivate::describe, this, _1, _2) + std::bind(&BazaarPluginPrivate::vcsDescribe, this, _1, _2) }; }; -- cgit v1.2.3