194 painter.setPen(pen) |
194 painter.setPen(pen) |
195 painter.setBrush(self.brush()) |
195 painter.setBrush(self.brush()) |
196 painter.drawRect(self.rect()) |
196 painter.drawRect(self.rect()) |
197 self.adjustAssociations() |
197 self.adjustAssociations() |
198 |
198 |
199 def setId(self, id): |
199 def setId(self, itemId): |
200 """ |
200 """ |
201 Public method to assign an ID to the item. |
201 Public method to assign an ID to the item. |
202 |
202 |
203 @param id assigned ID (integer) |
203 @param itemId assigned ID (integer) |
204 """ |
204 """ |
205 self.__id = id |
205 self.__id = itemId |
206 |
206 |
207 def getId(self): |
207 def getId(self): |
208 """ |
208 """ |
209 Public method to get the item ID. |
209 Public method to get the item ID. |
210 |
210 |