diff options
author | kh <karsten.heimrich@theqtcompany.com> | 2014-11-27 14:10:15 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-02 13:28:59 +0100 |
commit | cd9782fd09420af12c5127468bdcb214efc633fe (patch) | |
tree | 1f6f6ca6295f4fdc1d00f9daffa7f167540c0c3c /src/libs | |
parent | 2e05d089af226f798cbae3f44ff9d131bf682024 (diff) |
Remove occurrences of QHostAddress.
The overload of QAbstractSocket::connectToHost() did convert to
QHostAddress back to QString to call the other connect version.
Change-Id: Idd4089fd92cfd9b103786395a455d0a18abc2c4a
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/installer/remoteclient.cpp | 2 | ||||
-rw-r--r-- | src/libs/installer/remoteclient.h | 9 | ||||
-rw-r--r-- | src/libs/installer/remoteclient_p.h | 3 | ||||
-rw-r--r-- | src/libs/installer/remoteobject.cpp | 1 | ||||
-rw-r--r-- | src/libs/installer/remoteserver.h | 4 | ||||
-rw-r--r-- | src/libs/installer/remoteserver_p.h | 1 |
6 files changed, 5 insertions, 15 deletions
diff --git a/src/libs/installer/remoteclient.cpp b/src/libs/installer/remoteclient.cpp index 71fd055c3..1c518ed16 100644 --- a/src/libs/installer/remoteclient.cpp +++ b/src/libs/installer/remoteclient.cpp @@ -58,7 +58,7 @@ quint16 RemoteClient::port() const return d->m_port; } -QHostAddress RemoteClient::address() const +QString RemoteClient::address() const { Q_D(const RemoteClient); return d->m_address; diff --git a/src/libs/installer/remoteclient.h b/src/libs/installer/remoteclient.h index 8ba8a0649..f2c268626 100644 --- a/src/libs/installer/remoteclient.h +++ b/src/libs/installer/remoteclient.h @@ -40,11 +40,6 @@ #include <QScopedPointer> -QT_BEGIN_NAMESPACE -class QHostAddress; -class QStringList; -QT_END_NAMESPACE - namespace QInstaller { class RemoteClientPrivate; @@ -59,10 +54,10 @@ public: void init(quint16 port, const QString &key, Protocol::Mode mode, Protocol::StartAs startAs); void shutdown(); - void init(quint16 port, const QHostAddress &address, Protocol::Mode mode); + void init(quint16 port, const QString &address, Protocol::Mode mode); quint16 port() const; - QHostAddress address() const; + QString address() const; QString authorizationKey() const; bool isActive() const; diff --git a/src/libs/installer/remoteclient_p.h b/src/libs/installer/remoteclient_p.h index 5afc32ff5..103b60d08 100644 --- a/src/libs/installer/remoteclient_p.h +++ b/src/libs/installer/remoteclient_p.h @@ -45,7 +45,6 @@ #include <QCoreApplication> #include <QElapsedTimer> -#include <QHostAddress> #include <QMutex> #include <QThread> @@ -187,7 +186,7 @@ public: private: RemoteClient *q_ptr; QMutex m_mutex; - QHostAddress m_address; + QString m_address; quint16 m_port; Protocol::StartAs m_startServerAs; bool m_serverStarted; diff --git a/src/libs/installer/remoteobject.cpp b/src/libs/installer/remoteobject.cpp index 6872ed22c..e295694b6 100644 --- a/src/libs/installer/remoteobject.cpp +++ b/src/libs/installer/remoteobject.cpp @@ -39,7 +39,6 @@ #include <QCoreApplication> #include <QElapsedTimer> -#include <QHostAddress> #include <QThread> namespace QInstaller { diff --git a/src/libs/installer/remoteserver.h b/src/libs/installer/remoteserver.h index 9a4fbdd34..40d484d65 100644 --- a/src/libs/installer/remoteserver.h +++ b/src/libs/installer/remoteserver.h @@ -40,10 +40,6 @@ #include <QObject> -QT_BEGIN_NAMESPACE -class QHostAddress; -QT_END_NAMESPACE - namespace QInstaller { class RemoteServerPrivate; diff --git a/src/libs/installer/remoteserver_p.h b/src/libs/installer/remoteserver_p.h index 326606b98..e210feb1e 100644 --- a/src/libs/installer/remoteserver_p.h +++ b/src/libs/installer/remoteserver_p.h @@ -39,6 +39,7 @@ #include "remoteserver.h" #include "remoteserverconnection.h" +#include <QHostAddress> #include <QPointer> #include <QTcpServer> #include <QTimer> |