Graphics/UMLItem.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
--- a/Graphics/UMLItem.py	Sun Jun 19 17:50:39 2011 +0200
+++ b/Graphics/UMLItem.py	Sun Jun 19 19:36:27 2011 +0200
@@ -26,7 +26,7 @@
         @param rounded flag indicating a rounded corner (boolean)
         @keyparam parent reference to the parent object (QGraphicsItem)
         """
-        QGraphicsRectItem.__init__(self, parent)
+        super().__init__(parent)
         self.font = Preferences.getGraphics("Font")
         self.margin = 5
         self.associations = []
@@ -101,7 +101,7 @@
         @param dx relative movement in x-direction (float)
         @param dy relative movement in y-direction (float)
         """
-        QGraphicsRectItem.moveBy(self, dx, dy)
+        super().moveBy(dx, dy)
         self.adjustAssociations()
         
     def setPos(self, x, y):
@@ -111,7 +111,7 @@
         @param x absolute x-position (float)
         @param y absolute y-position (float)
         """
-        QGraphicsRectItem.setPos(self, x, y)
+        super().setPos(x, y)
         self.adjustAssociations()
         
     def itemChange(self, change, value):

eric ide

mercurial