UI/Browser.py

changeset 4186
e2bf1c32272b
parent 4183
856ba07de877
child 4528
63154a5e18d0
--- a/UI/Browser.py	Thu Mar 26 22:20:47 2015 +0100
+++ b/UI/Browser.py	Sat Mar 28 11:49:02 2015 +0100
@@ -40,6 +40,8 @@
     
     @signal sourceFile(str, int = 0, str = "") emitted to open a Python file
         at a line
+    @signal sourceFile(str, list) emitted to open a Python file giving a list
+        of lines
     @signal designerFile(str) emitted to open a Qt-Designer file
     @signal linguistFile(str) emitted to open a Qt-Linguist (*.ts) file
     @signal trpreview(list of str, bool = False) emitted to preview a
@@ -51,7 +53,7 @@
     @signal svgFile(str) emitted to open a SVG file
     @signal unittestOpen(str) emitted to open a Python file for a unittest
     """
-    sourceFile = pyqtSignal((str, ), (str, int), (str, int, str))
+    sourceFile = pyqtSignal((str, ), (str, int), (str, list), (str, int, str))
     designerFile = pyqtSignal(str)
     linguistFile = pyqtSignal(str)
     trpreview = pyqtSignal((list, ), (list, bool))
@@ -450,8 +452,8 @@
                     self.sourceFile[str, int].emit(
                         itm.fileName(), itm.attributeObject().lineno)
                 elif isinstance(itm, BrowserImportItem):
-                    self.sourceFile[str, int].emit(
-                        itm.fileName(), itm.lineno())
+                    self.sourceFile[str, list].emit(
+                        itm.fileName(), itm.linenos())
             self._activating = False
         
     def __showMimeType(self):

eric ide

mercurial