Git Locator: Add "git show"

Change-Id: Id42c285ed4f31a5a1ad0288166fecff4ac630561
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2013-01-24 13:19:43 +01:00
parent 2dfc3ce2e1
commit d7b76a47d3

View File

@@ -582,10 +582,10 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
// --------------
gitContainer->addSeparator(globalcontext);
m_showAction = new QAction(tr("Show..."), this);
Core::Command *showCommitCommand = Core::ActionManager::registerAction(m_showAction, "Git.ShowCommit", globalcontext);
connect(m_showAction, SIGNAL(triggered()), this, SLOT(showCommit()));
gitContainer->addAction(showCommitCommand);
m_showAction
= createRepositoryAction(gitContainer,
tr("Show..."), Core::Id("Git.ShowCommit"),
globalcontext, true, SLOT(showCommit())).first;
m_createRepositoryAction = new QAction(tr("Create Repository..."), this);
Core::Command *createRepositoryCommand = Core::ActionManager::registerAction(m_createRepositoryAction, "Git.CreateRepository", globalcontext);