forked from qt-creator/qt-creator
Git: Add Gerrit to Locator
The Gerrit dialog itself was missing while Push to Gerrit was already there. Change-Id: Ie4b85cad9dba96beafb595c505daf28d0a1ceeb5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
0eebbf464b
commit
f1ed40a02c
@@ -276,11 +276,11 @@ bool GerritPlugin::initialize(Core::ActionContainer *ac)
|
||||
|
||||
QAction *openViewAction = new QAction(tr("Gerrit..."), this);
|
||||
|
||||
Core::Command *command =
|
||||
m_gerritCommand =
|
||||
Core::ActionManager::registerAction(openViewAction, Constants::GERRIT_OPEN_VIEW,
|
||||
Core::Context(Core::Constants::C_GLOBAL));
|
||||
connect(openViewAction, SIGNAL(triggered()), this, SLOT(openView()));
|
||||
ac->addAction(command);
|
||||
ac->addAction(m_gerritCommand);
|
||||
|
||||
QAction *pushAction = new QAction(tr("Push to Gerrit..."), this);
|
||||
|
||||
@@ -303,6 +303,7 @@ void GerritPlugin::updateActions(bool hasTopLevel)
|
||||
|
||||
void GerritPlugin::addToLocator(Locator::CommandLocator *locator)
|
||||
{
|
||||
locator->appendCommand(m_gerritCommand);
|
||||
locator->appendCommand(m_pushToGerritPair.second);
|
||||
}
|
||||
|
||||
|
@@ -88,6 +88,7 @@ private:
|
||||
|
||||
QSharedPointer<GerritParameters> m_parameters;
|
||||
QPointer<GerritDialog> m_dialog;
|
||||
Core::Command *m_gerritCommand;
|
||||
ActionCommandPair m_pushToGerritPair;
|
||||
QString m_reviewers;
|
||||
};
|
||||
|
Reference in New Issue
Block a user