eric6/IconEditor/IconEditorWindow.py

changeset 8150
fc1ae39af8c9
parent 8143
2c730d5fd177
child 8176
31965986ecd1
child 8218
7c09585bd960
equal deleted inserted replaced
8149:3fefc0c430f2 8150:fc1ae39af8c9
556 def __initToolsActions(self): 556 def __initToolsActions(self):
557 """ 557 """
558 Private method to create the View actions. 558 Private method to create the View actions.
559 """ 559 """
560 self.esm = QSignalMapper(self) 560 self.esm = QSignalMapper(self)
561 self.esm.mapped[int].connect(self.__editor.setTool) 561 try:
562 self.esm.mappedInt.connect(self.__editor.setTool)
563 except AttributeError:
564 # pre Qt 5.15
565 self.esm.mapped[int].connect(self.__editor.setTool)
562 566
563 self.drawingActGrp = createActionGroup(self) 567 self.drawingActGrp = createActionGroup(self)
564 self.drawingActGrp.setExclusive(True) 568 self.drawingActGrp.setExclusive(True)
565 569
566 self.drawPencilAct = E5Action( 570 self.drawPencilAct = E5Action(

eric ide

mercurial