Use QProcess::processId()

KProcess::pid() can be dropped and just use QProcess::processId()
This commit is contained in:
Luís Pereira
2020-12-10 16:49:53 +00:00
committed by Chih-Hsuan Yen
parent 645a0539f4
commit 62be87604c
5 changed files with 4 additions and 26 deletions
-10
View File
@@ -400,13 +400,3 @@ int KProcess::startDetached(const QStringList &argv)
QString prog = args.takeFirst();
return startDetached(prog, args);
}
int KProcess::pid() const
{
#ifdef Q_OS_UNIX
return (int) QProcess::pid();
#else
return QProcess::pid() ? QProcess::pid()->dwProcessId : 0;
#endif
}