UI/FindFileDialog.py

changeset 476
121633976eca
parent 458
1695e7a2db54
child 489
844a0a278269
--- a/UI/FindFileDialog.py	Mon Aug 09 18:31:43 2010 +0200
+++ b/UI/FindFileDialog.py	Mon Aug 09 19:57:09 2010 +0200
@@ -32,6 +32,8 @@
         source file at a line
     @signal designerFile(string) emitted to open a Qt-Designer file
     """
+    sourceFile = pyqtSignal(str, int, str, int, int)
+    
     lineRole    = Qt.UserRole + 1
     startRole   = Qt.UserRole + 2
     endRole     = Qt.UserRole + 3
@@ -421,7 +423,7 @@
                     
                     if self.feelLikeCheckBox.isChecked():
                         fn = os.path.join(self.project.ppath, file)
-                        self.emit(SIGNAL('sourceFile'), fn, count, "", (start, end))
+                        self.sourceFile.emit(fn, count, "", start, end)
                         QApplication.processEvents()
                         breakSearch = True
                         break
@@ -481,7 +483,7 @@
         if fn.endswith('.ui'):
             self.emit(SIGNAL('designerFile'), fn)
         else:
-            self.emit(SIGNAL('sourceFile'), fn, line, "", (start, end))
+            self.sourceFile.emit(fn, line, "", start, end)
         
     @pyqtSlot()
     def on_dirSelectButton_clicked(self):

eric ide

mercurial