Reuse ProcessSetupData in CallerHandle

Change-Id: I4a2d3fef15331343e7763149550280b722fc3781
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-02-16 03:21:51 +01:00
parent aa3166df78
commit 82c2450fbe
7 changed files with 48 additions and 118 deletions

View File

@@ -58,9 +58,9 @@ StartProcessPacket::StartProcessPacket(quintptr token)
void StartProcessPacket::doSerialize(QDataStream &stream) const
{
stream << command << arguments << workingDir << env << int(processMode) << writeData << int(channelMode)
<< standardInputFile << belowNormalPriority << nativeArguments << lowPriority
<< unixTerminalDisabled;
stream << command << arguments << workingDir << env << int(processMode) << writeData
<< int(processChannelMode) << standardInputFile << belowNormalPriority
<< nativeArguments << lowPriority << unixTerminalDisabled;
}
void StartProcessPacket::doDeserialize(QDataStream &stream)
@@ -69,7 +69,7 @@ void StartProcessPacket::doDeserialize(QDataStream &stream)
stream >> command >> arguments >> workingDir >> env >> pm >> writeData >> cm
>> standardInputFile >> belowNormalPriority >> nativeArguments >> lowPriority
>> unixTerminalDisabled;
channelMode = QProcess::ProcessChannelMode(cm);
processChannelMode = QProcess::ProcessChannelMode(cm);
processMode = Utils::ProcessMode(pm);
}