diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-06-17 23:50:30 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2020-06-18 05:17:59 +0000 |
commit | 5ebe34a33205199bd755283ed0a8c30870dadab8 (patch) | |
tree | 2a3c4429728f4cc6fe66e5bc1997dc6761164c5a /src/plugins/bazaar | |
parent | e9df7825fa8a8714c3623154f1fc3cf13066a9a4 (diff) |
VCS: Add vcsDescribe
Already exists in all implementations, but there was no common declaration.
Change-Id: Ieb3d10d1936c207722b5001712bce41e8114dcdc
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/bazaar')
-rw-r--r-- | src/plugins/bazaar/bazaarplugin.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/bazaar/bazaarplugin.cpp b/src/plugins/bazaar/bazaarplugin.cpp index c78605db07..1b0b43d21f 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) }; }; |