--- a/Tools/UIPreviewer.py Mon Aug 02 08:33:11 2010 +0200 +++ b/Tools/UIPreviewer.py Wed Aug 04 08:54:52 2010 +0200 @@ -119,7 +119,7 @@ """<b>Open File</b>""" """<p>This opens a new UI file for display.</p>""" )) - self.connect(self.openAct, SIGNAL('triggered()'), self.__openFile) + self.openAct.triggered.connect(self.__openFile) self.printAct = QAction(UI.PixmapCache.getIcon("print.png"), self.trUtf8('&Print'), self) @@ -129,7 +129,7 @@ """<b>Print</b>""" """<p>Print a screen capture.</p>""" )) - self.connect(self.printAct, SIGNAL('triggered()'), self.__printImage) + self.printAct.triggered.connect(self.__printImage) self.printPreviewAct = QAction(UI.PixmapCache.getIcon("printPreview.png"), self.trUtf8('Print Preview'), self) @@ -139,8 +139,7 @@ """<b>Print Preview</b>""" """<p>Print preview a screen capture.</p>""" )) - self.connect(self.printPreviewAct, SIGNAL('triggered()'), - self.__printPreviewImage) + self.printPreviewAct.triggered.connect(self.__printPreviewImage) self.imageAct = QAction(UI.PixmapCache.getIcon("screenCapture.png"), self.trUtf8('&Screen Capture'), self) @@ -151,7 +150,7 @@ """<b>Screen Capture</b>""" """<p>Save a screen capture to an image file.</p>""" )) - self.connect(self.imageAct, SIGNAL('triggered()'), self.__saveImage) + self.imageAct.triggered.connect(self.__saveImage) self.exitAct = QAction(UI.PixmapCache.getIcon("exit.png"), self.trUtf8('&Quit'), self) @@ -172,7 +171,7 @@ """<b>Copy</b>""" """<p>Copy screen capture to clipboard.</p>""" )) - self.connect(self.copyAct,SIGNAL('triggered()'),self.__copyImageToClipboard) + self.copyAct.triggered.connect(self.__copyImageToClipboard) self.whatsThisAct = QAction(UI.PixmapCache.getIcon("whatsThis.png"), self.trUtf8('&What\'s This?'), self) @@ -186,7 +185,7 @@ """ dialogs, this feature can be accessed using the context help""" """ button in the titlebar.</p>""" )) - self.connect(self.whatsThisAct,SIGNAL('triggered()'),self.__whatsThis) + self.whatsThisAct.triggered.connect(self.__whatsThis) self.aboutAct = QAction(self.trUtf8('&About'), self) self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) @@ -194,7 +193,7 @@ """<b>About</b>""" """<p>Display some information about this software.</p>""" )) - self.connect(self.aboutAct,SIGNAL('triggered()'),self.__about) + self.aboutAct.triggered.connect(self.__about) self.aboutQtAct = QAction(self.trUtf8('About &Qt'), self) self.aboutQtAct.setStatusTip(\ @@ -203,7 +202,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.connect(self.aboutQtAct,SIGNAL('triggered()'),self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) def __initMenus(self): """ @@ -552,4 +551,4 @@ p.drawImage(marginX, marginY, img.scaled(width, height, Qt.KeepAspectRatio, Qt.SmoothTransformation)) - p.end() + p.end() \ No newline at end of file