diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2019-03-01 11:57:16 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2019-03-04 09:02:15 +0000 |
commit | 8c964ff26eb32e93c4ff03b3bc8f5c4d568b39a3 (patch) | |
tree | f1544d7a911bb3e63dbd9799efd6334324569da3 /src | |
parent | 8ac8f61c764913ee730ff7012526340208ed0056 (diff) |
Deprecate QMqttClient::connectToHostEncrypted(const QString)
Change-Id: I3f972f2887ba8fb49ada648ade1f3a8637aef42f
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/mqtt/qmqttclient.cpp | 2 | ||||
-rw-r--r-- | src/mqtt/qmqttclient.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mqtt/qmqttclient.cpp b/src/mqtt/qmqttclient.cpp index 6a3fc63..57050a0 100644 --- a/src/mqtt/qmqttclient.cpp +++ b/src/mqtt/qmqttclient.cpp @@ -511,10 +511,12 @@ void QMqttClient::connectToHost() \a sslPeerName specifies the peer name to be passed to the socket. */ #ifndef QT_NO_SSL +#if QT_DEPRECATED_SINCE(5, 14) void QMqttClient::connectToHostEncrypted(const QString &sslPeerName) { connectToHost(true, sslPeerName); } +#endif /*! \since 5.14 diff --git a/src/mqtt/qmqttclient.h b/src/mqtt/qmqttclient.h index a86d65d..ae21dae 100644 --- a/src/mqtt/qmqttclient.h +++ b/src/mqtt/qmqttclient.h @@ -130,7 +130,9 @@ public: Q_INVOKABLE void connectToHost(); #ifndef QT_NO_SSL - Q_INVOKABLE void connectToHostEncrypted(const QString &sslPeerName = QString()); +#if QT_DEPRECATED_SINCE(5, 14) + Q_INVOKABLE void connectToHostEncrypted(const QString &sslPeerName = QString()); /// ### Qt 6: remove +#endif void connectToHostEncrypted(const QSslConfiguration &conf); #endif Q_INVOKABLE void disconnectFromHost(); |