Tools/TRPreviewer.py

changeset 456
d766de2ccbc7
parent 455
9a7e0b7b801e
parent 454
d28d558f7484
child 457
608a9c14f4c9
--- a/Tools/TRPreviewer.py	Wed Aug 04 14:03:01 2010 +0200
+++ b/Tools/TRPreviewer.py	Thu Aug 05 08:35:30 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)
@@ -190,7 +190,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'))
@@ -198,7 +198,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(\
@@ -207,7 +207,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'))
@@ -215,7 +215,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'))
@@ -223,7 +223,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)
@@ -233,7 +233,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'))
@@ -241,7 +241,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