Tools/UIPreviewer.py

changeset 500
c3abc7895a01
parent 457
608a9c14f4c9
child 537
72b32daeb8d6
--- a/Tools/UIPreviewer.py	Thu Aug 12 10:11:06 2010 +0200
+++ b/Tools/UIPreviewer.py	Thu Aug 12 16:11:13 2010 +0200
@@ -82,8 +82,7 @@
 
         self.setCentralWidget(self.cw)
         
-        self.connect(self.styleCombo,SIGNAL("activated(const QString&)"),
-                     self.__guiStyleSelected)
+        self.styleCombo.activated[str].connect(self.__guiStyleSelected)
         
         self.__initActions()
         self.__initMenus()
@@ -524,7 +523,7 @@
             QPrinter.ColorMode(int(settings.value("UIPreviewer/colormode"))))
         
         preview = QPrintPreviewDialog(printer, self)
-        self.connect(preview, SIGNAL("paintRequested(QPrinter*)"), self.__print)
+        preview.paintRequested.connect(self.__print)
         preview.exec_()
         
     def __print(self, printer):
@@ -550,4 +549,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