--- a/Graphics/PixmapDiagram.py Thu Aug 05 08:39:56 2010 +0200 +++ b/Graphics/PixmapDiagram.py Fri Aug 06 12:39:40 2010 +0200 @@ -114,8 +114,7 @@ self.__menu.addAction(self.zoomResetAct) self.setContextMenuPolicy(Qt.CustomContextMenu) - self.connect(self, SIGNAL('customContextMenuRequested(const QPoint &)'), - self.__showContextMenu) + self.customContextMenuRequested.connect(self.__showContextMenu) def __showContextMenu(self, coord): """ @@ -324,4 +323,4 @@ painter.setViewport(marginX + 5, marginY + 5, size.width(), size.height()) painter.setWindow(self.pixmapLabel.pixmap().rect()) painter.drawPixmap(0, 0, self.pixmapLabel.pixmap()) - painter.end() \ No newline at end of file + painter.end()