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

Revert "Use new connect api"

This reverts commit 72c07348.

Also revert this one, which causes the same effects.

CCMAIL: montel@kde.org
parent 96e83e94
......@@ -59,13 +59,7 @@ void FakeServer::startAndWait()
{
start();
// this will block until the event queue starts
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &FakeServer::started, Qt::BlockingQueuedConnection);
#else
QMetaObject::invokeMethod(this, "started", Qt::BlockingQueuedConnection);
#endif
}
void FakeServer::dataAvailable()
......
......@@ -261,12 +261,8 @@ void SessionPrivate::setState(Session::State s)
void SessionPrivate::sendData(const QByteArray &data)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(m_thread, [this, data] { sendData(data); }, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(m_thread, "sendData",
Qt::QueuedConnection, Q_ARG(QByteArray, data));
#endif
}
void SessionPrivate::responseReceived(const ServerResponse &r)
......
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