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( |