Tools/UIPreviewer.py

changeset 456
d766de2ccbc7
parent 455
9a7e0b7b801e
parent 454
d28d558f7484
child 457
608a9c14f4c9
diff -r 9a7e0b7b801e -r d766de2ccbc7 Tools/UIPreviewer.py
--- a/Tools/UIPreviewer.py	Wed Aug 04 14:03:01 2010 +0200
+++ b/Tools/UIPreviewer.py	Thu Aug 05 08:35:30 2010 +0200
@@ -119,7 +119,7 @@
                 """<b>Open File</b>"""
                 """<p>This opens a new UI file for display.</p>"""
         ))
-        self.openAct.triggered.connect(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.printAct.triggered.connect(self.__printImage)
+        self.printAct.triggered[()].connect(self.__printImage)
         
         self.printPreviewAct = QAction(UI.PixmapCache.getIcon("printPreview.png"), 
                         self.trUtf8('Print Preview'), self)
@@ -139,7 +139,7 @@
                 """<b>Print Preview</b>"""
                 """<p>Print preview a screen capture.</p>"""
         ))
-        self.printPreviewAct.triggered.connect(self.__printPreviewImage)
+        self.printPreviewAct.triggered[()].connect(self.__printPreviewImage)
         
         self.imageAct = QAction(UI.PixmapCache.getIcon("screenCapture.png"), 
                         self.trUtf8('&Screen Capture'), self)
@@ -150,7 +150,7 @@
                 """<b>Screen Capture</b>"""
                 """<p>Save a screen capture to an image file.</p>"""
         ))
-        self.imageAct.triggered.connect(self.__saveImage)
+        self.imageAct.triggered[()].connect(self.__saveImage)
         
         self.exitAct = QAction(UI.PixmapCache.getIcon("exit.png"), 
                         self.trUtf8('&Quit'), self)
@@ -170,7 +170,7 @@
                 """<b>Copy</b>"""
                 """<p>Copy screen capture to clipboard.</p>"""
         ))
-        self.copyAct.triggered.connect(self.__copyImageToClipboard)
+        self.copyAct.triggered[()].connect(self.__copyImageToClipboard)
         
         self.whatsThisAct = QAction(UI.PixmapCache.getIcon("whatsThis.png"),
                                 self.trUtf8('&What\'s This?'), self)
@@ -184,7 +184,7 @@
                 """ dialogs, this feature can be accessed using the context help"""
                 """ button in the titlebar.</p>"""
         ))
-        self.whatsThisAct.triggered.connect(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'))
@@ -192,7 +192,7 @@
                 """<b>About</b>"""
                 """<p>Display some information about this software.</p>"""
         ))
-        self.aboutAct.triggered.connect(self.__about)
+        self.aboutAct.triggered[()].connect(self.__about)
                      
         self.aboutQtAct = QAction(self.trUtf8('About &Qt'), self)
         self.aboutQtAct.setStatusTip(\
@@ -201,7 +201,7 @@
                 """<b>About Qt</b>"""
                 """<p>Display some information about the Qt toolkit.</p>"""
         ))
-        self.aboutQtAct.triggered.connect(self.__aboutQt)
+        self.aboutQtAct.triggered[()].connect(self.__aboutQt)
 
     def __initMenus(self):
         """

eric ide

mercurial