Use QProcess::processId() directly
The inheritance goes Pty -> KPtyProcess -> KProcess -> QProcess, so using processId() can be done without the deprecation wrappers.
The inheritance goes Pty -> KPtyProcess -> KProcess -> QProcess, so using processId() can be done without the deprecation wrappers.