Helpviewer/HelpDocsInstaller.py

changeset 487
4d41d03d3d00
parent 168
3383117f894b
child 501
5c615a85241a
diff -r e4711a55e482 -r 4d41d03d3d00 Helpviewer/HelpDocsInstaller.py
--- a/Helpviewer/HelpDocsInstaller.py	Tue Aug 10 19:40:44 2010 +0200
+++ b/Helpviewer/HelpDocsInstaller.py	Wed Aug 11 09:42:20 2010 +0200
@@ -23,6 +23,9 @@
         the installation of the documentation
     @signal docsInstalled(bool) emitted after the installation has finished
     """
+    errorMessage = pyqtSignal(str)
+    docsInstalled = pyqtSignal(bool)
+    
     def __init__(self, collection):
         """
         Constructor
@@ -74,7 +77,7 @@
         changes |= self.__installEric5Doc(engine)
         engine = None
         del engine
-        self.emit(SIGNAL("docsInstalled(bool)"), changes)
+        self.docsInstalled.emit(changes)
     
     def __installQtDoc(self, name, engine):
         """
@@ -122,7 +125,7 @@
                     engine.unregisterDocumentation(namespace)
                 
                 if not engine.registerDocumentation(fi.absoluteFilePath()):
-                    self.emit(SIGNAL("errorMessage(const QString&)"), 
+                    self.errorMessage.emit(
                         self.trUtf8("""<p>The file <b>{0}</b> could not be registered."""
                                     """<br/>Reason: {1}</p>""")\
                             .format(fi.absoluteFilePath, engine.error())
@@ -179,7 +182,7 @@
                     engine.unregisterDocumentation(namespace)
                 
                 if not engine.registerDocumentation(fi.absoluteFilePath()):
-                    self.emit(SIGNAL("errorMessage(const QString&)"), 
+                    self.errorMessage.emit(
                         self.trUtf8("""<p>The file <b>{0}</b> could not be registered."""
                                     """<br/>Reason: {1}</p>""")\
                             .format(fi.absoluteFilePath, engine.error())

eric ide

mercurial