Tools/TRPreviewer.py

changeset 454
d28d558f7484
parent 453
a81097a85889
child 456
d766de2ccbc7
--- a/Tools/TRPreviewer.py	Wed Aug 04 08:54:52 2010 +0200
+++ b/Tools/TRPreviewer.py	Wed Aug 04 20:33:53 2010 +0200
@@ -148,7 +148,7 @@
                 """<b>Open UI Files</b>"""
                 """<p>This opens some UI files for display.</p>"""
         ))
-        self.openUIAct.triggered.connect(self.__openWidget)
+        self.openUIAct.triggered[()].connect(self.__openWidget)
         
         self.openQMAct = QAction(UI.PixmapCache.getIcon("openQM.png"), 
                         self.trUtf8('Open &Translation Files...'), self)
@@ -157,7 +157,7 @@
                 """<b>Open Translation Files</b>"""
                 """<p>This opens some translation files for display.</p>"""
         ))
-        self.openQMAct.triggered.connect(self.__openTranslation)
+        self.openQMAct.triggered[()].connect(self.__openTranslation)
         
         self.reloadAct = QAction(UI.PixmapCache.getIcon("reload.png"), 
                         self.trUtf8('&Reload Translations'), self)
@@ -166,7 +166,7 @@
                 """<b>Reload Translations</b>"""
                 """<p>This reloads the translations for the loaded languages.</p>"""
         ))
-        self.reloadAct.triggered.connect(self.translations.reload)
+        self.reloadAct.triggered[()].connect(self.translations.reload)
         
         self.exitAct = QAction(UI.PixmapCache.getIcon("exit.png"), 
                         self.trUtf8('&Quit'), self)
@@ -191,7 +191,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'))
@@ -199,7 +199,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(\
@@ -208,7 +208,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)
         
         self.tileAct = QAction(self.trUtf8('&Tile'), self)
         self.tileAct.setStatusTip(self.trUtf8('Tile the windows'))
@@ -216,7 +216,7 @@
                 """<b>Tile the windows</b>"""
                 """<p>Rearrange and resize the windows so that they are tiled.</p>"""
         ))
-        self.tileAct.triggered.connect(self.preview.tile)
+        self.tileAct.triggered[()].connect(self.preview.tile)
         
         self.cascadeAct = QAction(self.trUtf8('&Cascade'), self)
         self.cascadeAct.setStatusTip(self.trUtf8('Cascade the windows'))
@@ -224,7 +224,7 @@
                 """<b>Cascade the windows</b>"""
                 """<p>Rearrange and resize the windows so that they are cascaded.</p>"""
         ))
-        self.cascadeAct.triggered.connect(self.preview.cascade)
+        self.cascadeAct.triggered[()].connect(self.preview.cascade)
         
         self.closeAct = QAction(UI.PixmapCache.getIcon("close.png"),
                             self.trUtf8('&Close'), self)
@@ -234,7 +234,7 @@
                 """<b>Close Window</b>"""
                 """<p>Close the current window.</p>"""
         ))
-        self.closeAct.triggered.connect(self.preview.closeWidget)
+        self.closeAct.triggered[()].connect(self.preview.closeWidget)
         
         self.closeAllAct = QAction(self.trUtf8('Clos&e All'), self)
         self.closeAllAct.setStatusTip(self.trUtf8('Close all windows'))
@@ -242,7 +242,7 @@
                 """<b>Close All Windows</b>"""
                 """<p>Close all windows.</p>"""
         ))
-        self.closeAllAct.triggered.connect(self.preview.closeAllWidgets)
+        self.closeAllAct.triggered[()].connect(self.preview.closeAllWidgets)
 
     def __initMenus(self):
         """

eric ide

mercurial