summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-22 23:31:41 +0200
committerMontel Laurent <[email protected]>2017-09-22 23:31:41 +0200
commit8228184bf05d8e214daaa66b21bb8fa444108b32 (patch)
treefbf7e58f75c2d4d5418148b2e2348b8c4e0ac9dd
parent94cf77854c26fa40f401a0712614429fa792b447 (diff)
Use new connect api
-rw-r--r--src/kmanagesieve/sessionthread.cpp2
-rw-r--r--src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kmanagesieve/sessionthread.cpp b/src/kmanagesieve/sessionthread.cpp
index 37c7077..2196f63 100644
--- a/src/kmanagesieve/sessionthread.cpp
+++ b/src/kmanagesieve/sessionthread.cpp
@@ -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);
}
diff --git a/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp b/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp
index a380acd..9c99a5f 100644
--- a/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp
+++ b/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp
@@ -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("--------------------------------------"));