Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py

changeset 464
a2b1d1770ef0
parent 13
1af94a91f439
child 470
99d8c50ba42f
--- a/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py	Mon Aug 09 08:41:03 2010 +0200
+++ b/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py	Mon Aug 09 15:36:47 2010 +0200
@@ -71,12 +71,9 @@
         self.process = QProcess()
         self.process.setWorkingDirectory(dname)
         
-        self.connect(self.process, SIGNAL('readyReadStandardOutput()'),
-            self.__readStdout)
-        self.connect(self.process, SIGNAL('readyReadStandardError()'),
-            self.__readStderr)
-        self.connect(self.process, SIGNAL('finished(int, QProcess::ExitStatus)'),
-            self.__finish)
+        self.process.readyReadStandardOutput.connect(self.__readStdout)
+        self.process.readyReadStandardOutput.connect(self.__readStderr)
+        self.process.finished.connect(self.__finish)
             
         self.setWindowTitle(self.trUtf8('{0} - {1}').format(self.cmdname, self.filename))
         self.process.start(program, args)
@@ -155,4 +152,4 @@
                     Preferences.getSystem("IOEncoding"), 
                     'replace')
             self.errors.insertPlainText(s)
-            self.errors.ensureCursorVisible()
+            self.errors.ensureCursorVisible()
\ No newline at end of file

eric ide

mercurial