Commit 25ddacc2 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Add using Git::Internal to GerritPushDialog



Change-Id: I7b2dab05809040397c7221ed830730bc1c5a019d
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 3bb1d048
...@@ -37,13 +37,15 @@ ...@@ -37,13 +37,15 @@
#include <QDir> #include <QDir>
#include <QRegExpValidator> #include <QRegExpValidator>
using namespace Git::Internal;
namespace Gerrit { namespace Gerrit {
namespace Internal { namespace Internal {
class PushItemDelegate : public Git::Internal::IconItemDelegate class PushItemDelegate : public IconItemDelegate
{ {
public: public:
PushItemDelegate(Git::Internal::LogChangeWidget *widget) PushItemDelegate(LogChangeWidget *widget)
: IconItemDelegate(widget, QLatin1String(":/git/images/arrowup.png")) : IconItemDelegate(widget, QLatin1String(":/git/images/arrowup.png"))
{ {
} }
...@@ -80,7 +82,7 @@ GerritPushDialog::GerritPushDialog(const QString &workingDir, const QString &rev ...@@ -80,7 +82,7 @@ GerritPushDialog::GerritPushDialog(const QString &workingDir, const QString &rev
m_localChangesFound = true; m_localChangesFound = true;
Git::Internal::GitClient *gitClient = Git::Internal::GitPlugin::instance()->gitClient(); GitClient *gitClient = GitPlugin::instance()->gitClient();
QString output; QString output;
QString error; QString error;
QStringList args; QStringList args;
...@@ -185,8 +187,7 @@ QString GerritPushDialog::calculateChangeRange() ...@@ -185,8 +187,7 @@ QString GerritPushDialog::calculateChangeRange()
QString number; QString number;
if (!Git::Internal::GitPlugin::instance()->gitClient()-> if (!GitPlugin::instance()->gitClient()->synchronousRevListCmd(m_workingDir, args, &number))
synchronousRevListCmd(m_workingDir, args, &number))
reject(); reject();
number.chop(1); number.chop(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment