Drop Qt5: Utils: Remove code below Qt 6.0.0

Change-Id: I6557238ceccc11c2d1fd8168f1e578fd27a1ee95
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-07-22 18:01:00 +02:00
parent 041ff11aae
commit 165fefffe8
4 changed files with 4 additions and 36 deletions

View File

@@ -48,24 +48,11 @@ class LauncherProcess : public QProcess
public:
LauncherProcess(QObject *parent) : QProcess(parent)
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && defined(Q_OS_UNIX)
setChildProcessModifier([this] { setupChildProcess_impl(); });
#endif
}
private:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void setupChildProcess() override
{
setupChildProcess_impl();
}
#endif
void setupChildProcess_impl()
{
#ifdef Q_OS_UNIX
const auto pid = static_cast<pid_t>(processId());
setpgid(pid, pid);
setChildProcessModifier([this] {
const auto pid = static_cast<pid_t>(processId());
setpgid(pid, pid);
});
#endif
}
};