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 |