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