forked from qt-creator/qt-creator
Git: Add using Git::Internal to GerritPushDialog
Change-Id: I7b2dab05809040397c7221ed830730bc1c5a019d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3bb1d048cb
commit
25ddacc238
@@ -37,13 +37,15 @@
|
||||
#include <QDir>
|
||||
#include <QRegExpValidator>
|
||||
|
||||
using namespace Git::Internal;
|
||||
|
||||
namespace Gerrit {
|
||||
namespace Internal {
|
||||
|
||||
class PushItemDelegate : public Git::Internal::IconItemDelegate
|
||||
class PushItemDelegate : public IconItemDelegate
|
||||
{
|
||||
public:
|
||||
PushItemDelegate(Git::Internal::LogChangeWidget *widget)
|
||||
PushItemDelegate(LogChangeWidget *widget)
|
||||
: IconItemDelegate(widget, QLatin1String(":/git/images/arrowup.png"))
|
||||
{
|
||||
}
|
||||
@@ -80,7 +82,7 @@ GerritPushDialog::GerritPushDialog(const QString &workingDir, const QString &rev
|
||||
|
||||
m_localChangesFound = true;
|
||||
|
||||
Git::Internal::GitClient *gitClient = Git::Internal::GitPlugin::instance()->gitClient();
|
||||
GitClient *gitClient = GitPlugin::instance()->gitClient();
|
||||
QString output;
|
||||
QString error;
|
||||
QStringList args;
|
||||
@@ -185,8 +187,7 @@ QString GerritPushDialog::calculateChangeRange()
|
||||
|
||||
QString number;
|
||||
|
||||
if (!Git::Internal::GitPlugin::instance()->gitClient()->
|
||||
synchronousRevListCmd(m_workingDir, args, &number))
|
||||
if (!GitPlugin::instance()->gitClient()->synchronousRevListCmd(m_workingDir, args, &number))
|
||||
reject();
|
||||
|
||||
number.chop(1);
|
||||
|
Reference in New Issue
Block a user