55 Public slot to stop the diff processes. |
55 Public slot to stop the diff processes. |
56 """ |
56 """ |
57 for process in [self.__process, self.__process2]: |
57 for process in [self.__process, self.__process2]: |
58 if ( |
58 if ( |
59 process is not None and |
59 process is not None and |
60 process.state() != QProcess.NotRunning |
60 process.state() != QProcess.ProcessState.NotRunning |
61 ): |
61 ): |
62 process.terminate() |
62 process.terminate() |
63 QTimer.singleShot(2000, process.kill) |
63 QTimer.singleShot(2000, process.kill) |
64 process.waitForFinished(3000) |
64 process.waitForFinished(3000) |
65 |
65 |
223 the contents pane. |
223 the contents pane. |
224 |
224 |
225 @param process reference to the process providing output |
225 @param process reference to the process providing output |
226 @type QProcess |
226 @type QProcess |
227 """ |
227 """ |
228 process.setReadChannel(QProcess.StandardOutput) |
228 process.setReadChannel(QProcess.ProcessChannel.StandardOutput) |
229 |
229 |
230 isTopDiff = process == self.__process |
230 isTopDiff = process == self.__process |
231 |
231 |
232 while process.canReadLine(): |
232 while process.canReadLine(): |
233 line = str(process.readLine(), self.__ioEncoding, |
233 line = str(process.readLine(), self.__ioEncoding, |