eric6/Plugins/VcsPlugins/vcsGit/GitDiffGenerator.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8143
2c730d5fd177
child 8218
7c09585bd960
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitDiffGenerator.py	Sat Mar 06 10:00:52 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsGit/GitDiffGenerator.py	Sun Mar 28 15:00:11 2021 +0200
@@ -57,7 +57,7 @@
         for process in [self.__process, self.__process2]:
             if (
                 process is not None and
-                process.state() != QProcess.NotRunning
+                process.state() != QProcess.ProcessState.NotRunning
             ):
                 process.terminate()
                 QTimer.singleShot(2000, process.kill)
@@ -165,8 +165,8 @@
         @param exitStatus exit status of the process (QProcess.ExitStatus)
         """
         if (
-            self.__process.state() == QProcess.NotRunning and
-            self.__process2.state() == QProcess.NotRunning
+            self.__process.state() == QProcess.ProcessState.NotRunning and
+            self.__process2.state() == QProcess.ProcessState.NotRunning
         ):
             self.finished.emit()
     
@@ -225,7 +225,7 @@
         @param process reference to the process providing output
         @type QProcess
         """
-        process.setReadChannel(QProcess.StandardOutput)
+        process.setReadChannel(QProcess.ProcessChannel.StandardOutput)
         
         isTopDiff = process == self.__process
         

eric ide

mercurial