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/git/gitplugin.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/plugins/git') diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 2ef9fa230b..2fb41dd1b8 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -250,6 +250,7 @@ public: bool vcsCreateRepository(const QString &directory) final; void vcsAnnotate(const QString &file, int line) final; + void vcsDescribe(const QString &source, const QString &id) final { m_gitClient.show(source, id); }; QString vcsTopic(const QString &directory) final; Core::ShellCommand *createInitialCheckoutCommand(const QString &url, @@ -264,7 +265,7 @@ public: menu->addAction(tr("&Copy \"%1\"").arg(reference), [reference] { QApplication::clipboard()->setText(reference); }); QAction *action = menu->addAction(tr("&Describe Change %1").arg(reference), - [=] { describe(workingDirectory, reference); }); + [=] { vcsDescribe(workingDirectory, reference); }); menu->setDefaultAction(action); GitClient::addChangeActions(menu, workingDirectory, reference); } @@ -366,7 +367,6 @@ public: void onApplySettings();; - void describe(const QString &source, const QString &id) { m_gitClient.show(source, id); }; Core::CommandLocator *m_commandLocator = nullptr; @@ -407,37 +407,37 @@ public: VcsEditorFactory svnLogEditorFactory { &svnLogEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory logEditorFactory { &logEditorParameters, [] { return new GitLogEditorWidgetT; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory reflogEditorFactory { &reflogEditorParameters, [] { return new GitLogEditorWidgetT; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory blameEditorFactory { &blameEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory commitTextEditorFactory { &commitTextEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory rebaseEditorFactory { &rebaseEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsSubmitEditorFactory submitEditorFactory { -- cgit v1.2.3