summaryrefslogtreecommitdiff
path: root/src/plugins/git/gerrit
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-01-28 23:24:28 +0200
committerOrgad Shaneh <orgads@gmail.com>2014-01-29 11:05:04 +0100
commit25ddacc23885e4455433ca24873dbceab658e99a (patch)
tree96f5a083e64b706762592cca5e30379569a2cc35 /src/plugins/git/gerrit
parent3bb1d048cbe3501cd740458c69b2b34dd0c90105 (diff)
downloadqt-creator-25ddacc23885e4455433ca24873dbceab658e99a.tar.gz
Git: Add using Git::Internal to GerritPushDialog
Change-Id: I7b2dab05809040397c7221ed830730bc1c5a019d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/gerrit')
-rw-r--r--src/plugins/git/gerrit/gerritpushdialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/git/gerrit/gerritpushdialog.cpp b/src/plugins/git/gerrit/gerritpushdialog.cpp
index 1c8d8a3df5..cf380429ac 100644
--- a/src/plugins/git/gerrit/gerritpushdialog.cpp
+++ b/src/plugins/git/gerrit/gerritpushdialog.cpp
@@ -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);