eric6/Graphics/UMLGraphicsView.py

changeset 8150
fc1ae39af8c9
parent 8143
2c730d5fd177
child 8176
31965986ecd1
child 8218
7c09585bd960
equal deleted inserted replaced
8149:3fefc0c430f2 8150:fc1ae39af8c9
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)

eric ide

mercurial