Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 94b97995 authored by Laurent Montel's avatar Laurent Montel 😁

Use new connect api

parent 2114c4d1
......@@ -352,8 +352,12 @@ void SessionPrivate::socketDisconnected()
void SessionPrivate::startSsl(KTcpSocket::SslVersion version)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(m_thread, [this, version] {m_thread->startSsl(version); }, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(m_thread, "startSsl", Qt::QueuedConnection,
Q_ARG(KTcpSocket::SslVersion, version));
#endif
}
KTcpSocket::SslVersion SessionPrivate::negotiatedEncryption() const
......
......@@ -229,8 +229,12 @@ void SessionThread::sslConnected()
void SessionThread::handleSslErrorResponse(bool ignoreError)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, [this, ignoreError] {doHandleSslErrorResponse(ignoreError); }, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "doHandleSslErrorResponse", Qt::QueuedConnection,
Q_ARG(bool, ignoreError));
#endif
}
void SessionThread::doHandleSslErrorResponse(bool ignoreError)
......
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