Tools/UIPreviewer.py

changeset 455
9a7e0b7b801e
parent 453
a81097a85889
child 456
d766de2ccbc7
--- a/Tools/UIPreviewer.py	Wed Aug 04 08:54:52 2010 +0200
+++ b/Tools/UIPreviewer.py	Wed Aug 04 14:03:01 2010 +0200
@@ -160,8 +160,7 @@
                 """<b>Quit</b>"""
                 """<p>Quit the application.</p>"""
         ))
-        self.connect(self.exitAct, SIGNAL('triggered()'), 
-                     qApp, SLOT('closeAllWindows()'))
+        self.exitAct.triggered.connect(qApp.closeAllWindows)
         
         self.copyAct = QAction(UI.PixmapCache.getIcon("editCopy.png"),
                             self.trUtf8('&Copy'), self)
@@ -551,4 +550,4 @@
         p.drawImage(marginX, marginY, 
                     img.scaled(width, height, 
                                Qt.KeepAspectRatio, Qt.SmoothTransformation))
-        p.end()
\ No newline at end of file
+        p.end()

eric ide

mercurial