Debugger/DebugViewer.py

changeset 476
121633976eca
parent 464
a2b1d1770ef0
child 481
ad71812ba395
--- a/Debugger/DebugViewer.py	Mon Aug 09 18:31:43 2010 +0200
+++ b/Debugger/DebugViewer.py	Mon Aug 09 19:57:09 2010 +0200
@@ -45,6 +45,8 @@
     
     @signal sourceFile(string, int) emitted to open a source file at a line
     """
+    sourceFile = pyqtSignal(str, int)
+    
     def __init__(self, debugServer, docked, vm, parent = None, 
                  embeddedShell = True, embeddedBrowser = True):
         """
@@ -186,8 +188,7 @@
         index = self.__tabWidget.addTab(self.breakpointViewer,
             UI.PixmapCache.getIcon("breakpoints.png"), '')
         self.__tabWidget.setTabToolTip(index, self.breakpointViewer.windowTitle())
-        self.connect(self.breakpointViewer, SIGNAL("sourceFile"),
-                     self, SIGNAL("sourceFile"))
+        self.breakpointViewer.sourceFile.connect(self.sourceFile)
         
         # add the watch expression viewer
         self.watchpointViewer = WatchPointViewer()
@@ -345,7 +346,7 @@
         Private slot to handle the source button press to show the selected file.
         """
         s = self.currentStack[self.stackComboBox.currentIndex()]
-        self.emit(SIGNAL('sourceFile'), s[0], int(s[1]))
+        self.sourceFile.emit(s[0], int(s[1]))
         
     def __frameSelected(self, frmnr):
         """
@@ -429,4 +430,4 @@
         """
         if current is not None and self.__doThreadListUpdate:
             tid = int(current.text(0))
-            self.debugServer.remoteSetThread(tid)
\ No newline at end of file
+            self.debugServer.remoteSetThread(tid)

eric ide

mercurial