diff options
author | hjk <hjk@qt.io> | 2020-02-07 11:24:32 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-02-07 12:56:10 +0000 |
commit | eb1226df68edb2180425fda8411f57aab06c7b5f (patch) | |
tree | 83cab0eb431c1bf50efe9672da473f22caced496 /src/plugins/git/gerrit/gerritserver.cpp | |
parent | 4e357e84c03c629a284c1f5505908f8a7644fba9 (diff) | |
download | qt-creator-eb1226df68edb2180425fda8411f57aab06c7b5f.tar.gz |
Git: Partially move plugin pimpl to .cpp
Same procedure as for ClearCase.
Unfortuately, some deep accesses are not easy to get rid of. Make them
available by static functions in the plugin itself. Definitely not the
favorite setup, but allows to proceed with the QObject removals.
Change-Id: Id85ed07bc7a6c1c053431a14dd7f68892f7ebea0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gerrit/gerritserver.cpp')
-rw-r--r-- | src/plugins/git/gerrit/gerritserver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gerrit/gerritserver.cpp b/src/plugins/git/gerrit/gerritserver.cpp index c47cd281f3..f642b1f9d6 100644 --- a/src/plugins/git/gerrit/gerritserver.cpp +++ b/src/plugins/git/gerrit/gerritserver.cpp @@ -240,7 +240,7 @@ QStringList GerritServer::curlArguments() const int GerritServer::testConnection() { - static GitClient *const client = GitPluginPrivate::client(); + static GitClient *const client = GitPlugin::client(); const QStringList arguments = curlArguments() << (url(RestUrl) + accountUrlC); const SynchronousProcessResponse resp = client->vcsFullySynchronousExec( QString(), {curlBinary, arguments}, @@ -332,7 +332,7 @@ bool GerritServer::resolveRoot() void GerritServer::resolveVersion(const GerritParameters &p, bool forceReload) { - static GitClient *const client = GitPluginPrivate::client(); + static GitClient *const client = GitPlugin::client(); QSettings *settings = Core::ICore::settings(); const QString fullVersionKey = "Gerrit/" + host + '/' + versionKey; version = settings->value(fullVersionKey).toString(); |