Utils: Adapt ProcessHelper to move to Qt 6.2

And move constructor out-of-line.

Change-Id: Iab92dbef56d60f2ec2d19b778fd968834dd72766
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-07-14 15:51:24 +02:00
parent 775aa8f9e5
commit a1588918b3
2 changed files with 11 additions and 11 deletions

View File

@@ -110,6 +110,14 @@ BOOL CALLBACK sendInterruptMessageToAllWindowsOfProcess_enumWnd(HWND hwnd, LPARA
}
#endif
ProcessHelper::ProcessHelper(QObject *parent)
: QProcess(parent), m_processStartHandler(this)
{
#if defined(Q_OS_UNIX)
setChildProcessModifier([this] { setupChildProcess_impl(); });
#endif
}
void ProcessHelper::setUseCtrlCStub(bool enabled)
{
m_useCtrlCStub = enabled;