72 def __initActions(self): |
72 def __initActions(self): |
73 """ |
73 """ |
74 Private method to initialize the view actions. |
74 Private method to initialize the view actions. |
75 """ |
75 """ |
76 self.alignMapper = QSignalMapper(self) |
76 self.alignMapper = QSignalMapper(self) |
77 self.alignMapper.mapped[int].connect(self.__alignShapes) |
77 try: |
|
78 self.alignMapper.mappedInt.connect(self.__alignShapes) |
|
79 except AttributeError: |
|
80 # pre Qt 5.15 |
|
81 self.alignMapper.mapped[int].connect(self.__alignShapes) |
78 |
82 |
79 self.deleteShapeAct = QAction( |
83 self.deleteShapeAct = QAction( |
80 UI.PixmapCache.getIcon("deleteShape"), |
84 UI.PixmapCache.getIcon("deleteShape"), |
81 self.tr("Delete shapes"), self) |
85 self.tr("Delete shapes"), self) |
82 self.deleteShapeAct.triggered.connect(self.__deleteShape) |
86 self.deleteShapeAct.triggered.connect(self.__deleteShape) |