Commit f2909ba5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port some deprecated methods

parent 0638c2e9
......@@ -234,7 +234,7 @@ void KSldApp::initialize()
}
}
);
connect(m_lockProcess, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error), this,
connect(m_lockProcess, &QProcess::errorOccurred, this,
[this](QProcess::ProcessError error) {
if (error == QProcess::FailedToStart) {
doUnlock();
......@@ -566,7 +566,7 @@ void KSldApp::startLockProcess(EstablishLock establishLock)
int sx[2];
if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sx) < 0) {
qWarning() << "Can not create socket";
emit m_lockProcess->error(QProcess::FailedToStart);
emit m_lockProcess->errorOccurred(QProcess::FailedToStart);
return;
}
m_greeterClientConnection = m_waylandDisplay->createClient(sx[0]);
......@@ -608,7 +608,7 @@ void KSldApp::startLockProcess(EstablishLock establishLock)
// start the Wayland server
int fd = m_waylandServer->start();
if (fd == -1) {
emit m_lockProcess->error(QProcess::FailedToStart);
emit m_lockProcess->errorOccurred(QProcess::FailedToStart);
return;
}
......
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