--- a/eric6/Project/ProjectTranslationsBrowser.py Sat Mar 06 10:00:52 2021 +0100 +++ b/eric6/Project/ProjectTranslationsBrowser.py Sun Mar 28 15:00:11 2021 +0200 @@ -691,7 +691,7 @@ " from the project?"), translationFiles) - if dlg.exec() == QDialog.Accepted: + if dlg.exec() == QDialog.DialogCode.Accepted: for fn in translationFiles: self.closeSourceWindow.emit(fn) self.project.deleteLanguageFile(fn) @@ -870,7 +870,7 @@ """ ioEncoding = Preferences.getSystem("IOEncoding") - proc.setReadChannel(QProcess.StandardOutput) + proc.setReadChannel(QProcess.ProcessChannel.StandardOutput) while proc and proc.canReadLine(): s = ps output = str(proc.readLine(), ioEncoding, 'replace') @@ -906,7 +906,7 @@ """ ioEncoding = Preferences.getSystem("IOEncoding") - proc.setReadChannel(QProcess.StandardError) + proc.setReadChannel(QProcess.ProcessChannel.StandardError) while proc and proc.canReadLine(): s = ps error = str(proc.readLine(), ioEncoding, 'replace') @@ -936,7 +936,7 @@ @type QProcess.ExitStatus """ ui = e5App().getObject("UserInterface") - if exitStatus == QProcess.NormalExit and exitCode == 0: + if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0: ui.showNotification( UI.PixmapCache.getPixmap("linguist48"), self.tr("Translation file generation"), @@ -944,7 +944,7 @@ "The generation of the translation files (*.ts)" " was successful.")) else: - if exitStatus == QProcess.CrashExit: + if exitStatus == QProcess.ExitStatus.CrashExit: info = self.tr(" The process has crashed.") else: info = "" @@ -1189,7 +1189,7 @@ @type QProcess.ExitStatus """ ui = e5App().getObject("UserInterface") - if exitStatus == QProcess.NormalExit and exitCode == 0: + if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0: ui.showNotification( UI.PixmapCache.getPixmap("linguist48"), self.tr("Translation file release"),