src/eric7/Graphics/UMLItem.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10428
a071d4065202
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
198 value.setY(min(rect.bottom(), max(value.y(), rect.top()))) 198 value.setY(min(rect.bottom(), max(value.y(), rect.top())))
199 return value 199 return value
200 200
201 return QGraphicsItem.itemChange(self, change, value) 201 return QGraphicsItem.itemChange(self, change, value)
202 202
203 def paint(self, painter, option, widget=None): 203 def paint(self, painter, option, widget=None): # noqa: U100
204 """ 204 """
205 Public method to paint the item in local coordinates. 205 Public method to paint the item in local coordinates.
206 206
207 @param painter reference to the painter object 207 @param painter reference to the painter object
208 @type QPainter 208 @type QPainter
249 @return item type 249 @return item type
250 @rtype str 250 @rtype str
251 """ 251 """
252 return self.ItemType 252 return self.ItemType
253 253
254 def parseItemDataString(self, version, data): 254 def parseItemDataString(self, version, data): # noqa: U100
255 """ 255 """
256 Public method to parse the given persistence data. 256 Public method to parse the given persistence data.
257 257
258 @param version version of the data 258 @param version version of the data
259 @type str 259 @type str

eric ide

mercurial