Continued porting signal/slot usage to the new API.

Thu, 05 Aug 2010 08:39:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 05 Aug 2010 08:39:56 +0200
changeset 457
608a9c14f4c9
parent 456
d766de2ccbc7
child 458
1695e7a2db54

Continued porting signal/slot usage to the new API.

Graphics/UMLGraphicsView.py file | annotate | diff | comparison | revisions
Helpviewer/HelpWindow.py file | annotate | diff | comparison | revisions
IconEditor/IconEditorWindow.py file | annotate | diff | comparison | revisions
Plugins/ViewManagerPlugins/MdiArea/MdiArea.py file | annotate | diff | comparison | revisions
SqlBrowser/SqlBrowser.py file | annotate | diff | comparison | revisions
Tools/TRPreviewer.py file | annotate | diff | comparison | revisions
Tools/UIPreviewer.py file | annotate | diff | comparison | revisions
UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/Graphics/UMLGraphicsView.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/Graphics/UMLGraphicsView.py	Thu Aug 05 08:39:56 2010 +0200
@@ -135,37 +135,37 @@
             QAction(UI.PixmapCache.getIcon("shapesAlignLeft"), 
                     self.trUtf8("Align Left"), self)
         self.alignMapper.setMapping(self.alignLeftAct, Qt.AlignLeft)
-        self.alignLeftAct.triggered.connect(self.alignMapper.map)
+        self.alignLeftAct.triggered[()].connect(self.alignMapper.map)
         
         self.alignHCenterAct = \
             QAction(UI.PixmapCache.getIcon("shapesAlignHCenter"), 
                     self.trUtf8("Align Center Horizontal"), self)
         self.alignMapper.setMapping(self.alignHCenterAct, Qt.AlignHCenter)
-        self.alignHCenterAct.triggered.connect(self.alignMapper.map)
+        self.alignHCenterAct.triggered[()].connect(self.alignMapper.map)
         
         self.alignRightAct = \
             QAction(UI.PixmapCache.getIcon("shapesAlignRight"), 
                     self.trUtf8("Align Right"), self)
         self.alignMapper.setMapping(self.alignRightAct, Qt.AlignRight)
-        self.alignRightAct.triggered.connect(self.alignMapper.map)
+        self.alignRightAct.triggered[()].connect(self.alignMapper.map)
         
         self.alignTopAct = \
             QAction(UI.PixmapCache.getIcon("shapesAlignTop"), 
                     self.trUtf8("Align Top"), self)
         self.alignMapper.setMapping(self.alignTopAct, Qt.AlignTop)
-        self.alignTopAct.triggered.connect(self.alignMapper.map)
+        self.alignTopAct.triggered[()].connect(self.alignMapper.map)
         
         self.alignVCenterAct = \
             QAction(UI.PixmapCache.getIcon("shapesAlignVCenter"), 
                     self.trUtf8("Align Center Vertical"), self)
         self.alignMapper.setMapping(self.alignVCenterAct, Qt.AlignVCenter)
-        self.alignVCenterAct.triggered.connect(self.alignMapper.map)
+        self.alignVCenterAct.triggered[()].connect(self.alignMapper.map)
         
         self.alignBottomAct = \
             QAction(UI.PixmapCache.getIcon("shapesAlignBottom"), 
                     self.trUtf8("Align Bottom"), self)
         self.alignMapper.setMapping(self.alignBottomAct, Qt.AlignBottom)
-        self.alignBottomAct.triggered.connect(self.alignMapper.map)
+        self.alignBottomAct.triggered[()].connect(self.alignMapper.map)
         
     def __checkSizeActions(self):
         """
@@ -485,4 +485,4 @@
                           (itemrect.y() + itemrect.height() // 2)
             item.moveBy(xOffset, yOffset)
         
-        self.scene().update()
+        self.scene().update()
\ No newline at end of file
--- a/Helpviewer/HelpWindow.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/Helpviewer/HelpWindow.py	Thu Aug 05 08:39:56 2010 +0200
@@ -546,7 +546,7 @@
         if self.fromEric:
             self.exitAct.triggered[()].connect(self.close)
         else:
-            self.exitAct.triggered.connect(qApp.closeAllWindows)
+            self.exitAct.triggered[()].connect(qApp.closeAllWindows)
         self.__actions.append(self.exitAct)
         
         self.backAct = E5Action(self.trUtf8('Backward'), 
@@ -3016,4 +3016,4 @@
         else:
             print(codecs[offset])
             QWebSettings.globalSettings().setDefaultTextEncoding(codecs[offset])
-            Preferences.setHelp("DefaultTextEncoding", codecs[offset])
+            Preferences.setHelp("DefaultTextEncoding", codecs[offset])
\ No newline at end of file
--- a/IconEditor/IconEditorWindow.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/IconEditor/IconEditorWindow.py	Thu Aug 05 08:39:56 2010 +0200
@@ -265,7 +265,7 @@
         if self.fromEric:
             self.exitAct.triggered[()].connect(self.close)
         else:
-            self.exitAct.triggered.connect(qApp.closeAllWindows)
+            self.exitAct.triggered[()].connect(qApp.closeAllWindows)
         self.__actions.append(self.exitAct)
     
     def __initEditActions(self):
@@ -1230,4 +1230,4 @@
         """
         Private slot called in to enter Whats This mode.
         """
-        QWhatsThis.enterWhatsThisMode()
+        QWhatsThis.enterWhatsThisMode()
\ No newline at end of file
--- a/Plugins/ViewManagerPlugins/MdiArea/MdiArea.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/Plugins/ViewManagerPlugins/MdiArea/MdiArea.py	Thu Aug 05 08:39:56 2010 +0200
@@ -192,7 +192,7 @@
             elif idx < 36:
                 accel = "&{0}. ".format(chr(idx - 9 + ord("@")))
             act = menu.addAction("{0}{1}".format(accel, txt))
-            act.triggered.connect(self.__windowMapper.map)
+            act.triggered[()].connect(self.__windowMapper.map)
             self.__windowMapper.setMapping(act, subWindow)
             idx += 1
         
@@ -363,4 +363,4 @@
         Private slot to iconize all windows.
         """
         for win in self.subWindowList():
-            win.showMinimized()
+            win.showMinimized()
\ No newline at end of file
--- a/SqlBrowser/SqlBrowser.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/SqlBrowser/SqlBrowser.py	Thu Aug 05 08:39:56 2010 +0200
@@ -106,7 +106,7 @@
                 """<b>Quit</b>"""
                 """<p>Quit the SQL browser.</p>"""
         ))
-        self.exitAct.triggered.connect(qApp.closeAllWindows)
+        self.exitAct.triggered[()].connect(qApp.closeAllWindows)
         
         self.aboutAct = E5Action(self.trUtf8('About'), 
             self.trUtf8('&About'), 
@@ -176,4 +176,4 @@
         """
         Private slot to show info about Qt.
         """
-        QMessageBox.aboutQt(self, self.trUtf8("SQL Browser"))
+        QMessageBox.aboutQt(self, self.trUtf8("SQL Browser"))
\ No newline at end of file
--- a/Tools/TRPreviewer.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/Tools/TRPreviewer.py	Thu Aug 05 08:39:56 2010 +0200
@@ -176,7 +176,7 @@
                 """<b>Quit</b>"""
                 """<p>Quit the application.</p>"""
         ))
-        self.exitAct.triggered.connect(qApp.closeAllWindows)
+        self.exitAct.triggered[()].connect(qApp.closeAllWindows)
         
         self.whatsThisAct = QAction(UI.PixmapCache.getIcon("whatsThis.png"),
                                 self.trUtf8('&What\'s This?'), self)
@@ -853,4 +853,4 @@
         
         @return flag signaling if any widget was loaded (boolean)
         """
-        return len(self.widgets) > 0
+        return len(self.widgets) > 0
\ No newline at end of file
--- a/Tools/UIPreviewer.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/Tools/UIPreviewer.py	Thu Aug 05 08:39:56 2010 +0200
@@ -160,7 +160,7 @@
                 """<b>Quit</b>"""
                 """<p>Quit the application.</p>"""
         ))
-        self.exitAct.triggered.connect(qApp.closeAllWindows)
+        self.exitAct.triggered[()].connect(qApp.closeAllWindows)
         
         self.copyAct = QAction(UI.PixmapCache.getIcon("editCopy.png"),
                             self.trUtf8('&Copy'), self)
@@ -550,4 +550,4 @@
         p.drawImage(marginX, marginY, 
                     img.scaled(width, height, 
                                Qt.KeepAspectRatio, Qt.SmoothTransformation))
-        p.end()
+        p.end()
\ No newline at end of file
--- a/UI/UserInterface.py	Thu Aug 05 08:35:30 2010 +0200
+++ b/UI/UserInterface.py	Thu Aug 05 08:39:56 2010 +0200
@@ -2668,7 +2668,7 @@
         for key in groupActionKeys:
             if key not in ckeys:
                 self.toolbarManager.removeAction(self.toolGroupActions[key])
-                self.toolGroupActions[key].triggered[()].disconnect(self.__toolActionTriggered)
+                self.toolGroupActions[key].triggered[()].disconnect(
                     self.__toolActionTriggered)
                 del self.toolGroupActions[key]
         
@@ -5788,4 +5788,4 @@
         if self.__startup:
             if Preferences.getGeometry("MainMaximized"):
                 self.setWindowState(Qt.WindowStates(Qt.WindowMaximized))
-            self.__startup = False
\ No newline at end of file
+            self.__startup = False

eric ide

mercurial