forked from qt-creator/qt-creator
Utils: Don't depend on app/app_version.h
Instead use QCoreApplication abstractions. Change-Id: Ic349e0d2c4bb001815c81ba191c941a31c5b11ca Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "networkaccessmanager.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QLocale>
|
||||
#include <QUrl>
|
||||
#include <QNetworkReply>
|
||||
@@ -38,8 +39,6 @@
|
||||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
#include <app/app_version.h>
|
||||
|
||||
/*!
|
||||
\class Utils::NetworkManager
|
||||
|
||||
@@ -131,8 +130,9 @@ void NetworkAccessManager::getUrl(const QUrl &url)
|
||||
|
||||
QNetworkReply* NetworkAccessManager::createRequest(Operation op, const QNetworkRequest &request, QIODevice *outgoingData)
|
||||
{
|
||||
QString agentStr = QString::fromLatin1("Qt-Creator/%1 (QNetworkAccessManager %2; %3; %4; %5 bit)")
|
||||
.arg(QLatin1String(Core::Constants::IDE_VERSION_LONG),
|
||||
QString agentStr = QString::fromLatin1("%1/%2 (QNetworkAccessManager %3; %4; %5; %6 bit)")
|
||||
.arg(QCoreApplication::applicationName(),
|
||||
QCoreApplication::applicationVersion(),
|
||||
QLatin1String(qVersion()),
|
||||
getOsString(), QLocale::system().name())
|
||||
.arg(QSysInfo::WordSize);
|
||||
|
||||
Reference in New Issue
Block a user