Graphics/ClassItem.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2992
dbdf27746da5
child 3145
a9de05d4a22f
diff -r 9986ec0e559a -r 10516539f238 Graphics/ClassItem.py
--- a/Graphics/ClassItem.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Graphics/ClassItem.py	Fri Oct 18 23:00:41 2013 +0200
@@ -80,11 +80,13 @@
         Constructor
         
         @param model class model containing the class data (ClassModel)
-        @param external flag indicating a class defined outside our scope (boolean)
+        @param external flag indicating a class defined outside our scope
+            (boolean)
         @param x x-coordinate (integer)
         @param y y-coordinate (integer)
         @keyparam rounded flag indicating a rounded corner (boolean)
-        @keyparam noAttrs flag indicating, that no attributes should be shown (boolean)
+        @keyparam noAttrs flag indicating, that no attributes should be shown
+            (boolean)
         @keyparam parent reference to the parent object (QGraphicsItem)
         @keyparam scene reference to the scene object (QGraphicsScene)
         """
@@ -184,7 +186,8 @@
         @param widget optional reference to the widget painted on (QWidget)
         """
         pen = self.pen()
-        if (option.state & QStyle.State_Selected) == QStyle.State(QStyle.State_Selected):
+        if (option.state & QStyle.State_Selected) == \
+                QStyle.State(QStyle.State_Selected):
             pen.setWidth(2)
         else:
             pen.setWidth(1)
@@ -203,7 +206,8 @@
         painter.drawLine(offsetX, offsetY + y, offsetX + w - 1, offsetY + y)
         if self.attrs:
             y += self.margin + self.attrs.boundingRect().height()
-            painter.drawLine(offsetX, offsetY + y, offsetX + w - 1, offsetY + y)
+            painter.drawLine(offsetX, offsetY + y,
+                             offsetX + w - 1, offsetY + y)
         
         self.adjustAssociations()
         
@@ -220,8 +224,8 @@
         Public method to build a string to persist the specific item data.
         
         This string must start with ", " and should be built like
-        "attribute=value" with pairs separated by ", ". value must not contain ", "
-        or newlines.
+        "attribute=value" with pairs separated by ", ". value must not
+        contain ", " or newlines.
         
         @return persistence data (string)
         """

eric ide

mercurial