Commit 8228184b authored by Laurent Montel's avatar Laurent Montel 😁

Use new connect api

parent 94cf7785
......@@ -85,7 +85,7 @@ void SessionThread::doInit()
m_socket = new KTcpSocket(this);
connect(m_socket, &QIODevice::readyRead, this, &SessionThread::slotDataReceived);
connect(m_socket, SIGNAL(error(KTcpSocket::Error)), this, SLOT(slotSocketError()));
connect(m_socket, QOverload<KTcpSocket::Error>::of(&KTcpSocket::error), this, &SessionThread::slotSocketError);
connect(m_socket, &KTcpSocket::disconnected, this, &SessionThread::socketDisconnected);
connect(m_socket, &KTcpSocket::connected, this, &SessionThread::socketConnected);
}
......
......@@ -189,7 +189,7 @@ void SieveScriptDebuggerFrontEndWidget::slotDebugScript()
mProcess->start(QStringLiteral("sieve-test"), QStringList() << arguments);
connect(mProcess, &QProcess::readyReadStandardOutput, this, &SieveScriptDebuggerFrontEndWidget::slotReadStandardOutput);
connect(mProcess, &QProcess::readyReadStandardError, this, &SieveScriptDebuggerFrontEndWidget::slotReadErrorOutput);
connect(mProcess, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(slotDebugFinished()));
connect(mProcess, QOverload<int,QProcess::ExitStatus>::of(&QProcess::finished), this, &SieveScriptDebuggerFrontEndWidget::slotDebugFinished);
//TODO port to new connect api
//connect(mProcess, &QProcess::finished, this, &SieveScriptDebuggerFrontEndWidget::slotDebugFinished);
mSieveTestResult->editor()->appendPlainText(QStringLiteral("--------------------------------------"));
......
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