eric6/Graphics/ClassItem.py

changeset 8268
6b8128e0c9d1
parent 8234
fcb6b4b96274
child 8277
ea734702ae94
equal deleted inserted replaced
8267:6baca884c73a 8268:6b8128e0c9d1
129 self.header.setFont(boldFont) 129 self.header.setFont(boldFont)
130 self.header.setText(self.model.getName()) 130 self.header.setText(self.model.getName())
131 self.header.setPos(x, y) 131 self.header.setPos(x, y)
132 y += self.header.boundingRect().height() + self.margin 132 y += self.header.boundingRect().height() + self.margin
133 if not self.noAttrs and not self.external: 133 if not self.noAttrs and not self.external:
134 # TODO: add class attributes next to the instance attributes
135 # separate class and instance attributes by dashed line
134 if attrs: 136 if attrs:
135 txt = "\n".join(attrs) 137 txt = "\n".join(attrs)
136 else: 138 else:
137 txt = " " 139 txt = " "
138 self.attrs = QGraphicsSimpleTextItem(self) 140 self.attrs = QGraphicsSimpleTextItem(self)

eric ide

mercurial