Commit 81f695c9 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile against qt5.15

parent fc14821f
......@@ -84,7 +84,11 @@ void SessionThread::doInit()
Q_ASSERT(QThread::currentThread() == thread());
m_socket = std::make_unique<QSslSocket>();
connect(m_socket.get(), &QSslSocket::readyRead, this, &SessionThread::slotDataReceived);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(m_socket.get(), QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, &SessionThread::slotSocketError);
#else
connect(m_socket.get(), QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::errorOccurred), this, &SessionThread::slotSocketError);
#endif
connect(m_socket.get(), &QSslSocket::disconnected, this, &SessionThread::socketDisconnected);
connect(m_socket.get(), &QSslSocket::connected, this, &SessionThread::socketConnected);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment