eric6/IconEditor/IconEditorWindow.py

changeset 8150
fc1ae39af8c9
parent 8143
2c730d5fd177
child 8176
31965986ecd1
child 8218
7c09585bd960
diff -r 3fefc0c430f2 -r fc1ae39af8c9 eric6/IconEditor/IconEditorWindow.py
--- a/eric6/IconEditor/IconEditorWindow.py	Thu Mar 04 17:43:11 2021 +0100
+++ b/eric6/IconEditor/IconEditorWindow.py	Thu Mar 04 17:44:41 2021 +0100
@@ -558,7 +558,11 @@
         Private method to create the View actions.
         """
         self.esm = QSignalMapper(self)
-        self.esm.mapped[int].connect(self.__editor.setTool)
+        try:
+            self.esm.mappedInt.connect(self.__editor.setTool)
+        except AttributeError:
+            # pre Qt 5.15
+            self.esm.mapped[int].connect(self.__editor.setTool)
         
         self.drawingActGrp = createActionGroup(self)
         self.drawingActGrp.setExclusive(True)

eric ide

mercurial