forked from qt-creator/qt-creator
ProcessInterface: Pass processId with started() signal
Pass also applicationMainThreadId optionally (Windows only). Remove two virtual accessors. Task-number: QTCREATORBUG-27358 Change-Id: I3b12b642cc3c109653276c0fbf65e7f614ce6b56 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -176,7 +176,7 @@ void CallerHandle::handleStarted(const StartedSignal *launcherSignal)
|
||||
QTC_ASSERT(isCalledFromCallersThread(), return);
|
||||
m_processState = QProcess::Running;
|
||||
m_processId = launcherSignal->processId();
|
||||
emit started();
|
||||
emit started(m_processId);
|
||||
}
|
||||
|
||||
void CallerHandle::handleReadyRead(const ReadyReadSignal *launcherSignal)
|
||||
@@ -190,6 +190,7 @@ void CallerHandle::handleDone(const DoneSignal *launcherSignal)
|
||||
QTC_ASSERT(isCalledFromCallersThread(), return);
|
||||
m_processState = QProcess::NotRunning;
|
||||
emit done(launcherSignal->resultData());
|
||||
m_processId = 0;
|
||||
}
|
||||
|
||||
// Called from launcher's thread exclusively.
|
||||
|
||||
Reference in New Issue
Block a user