196 @param option style options (QStyleOptionGraphicsItem) |
196 @param option style options (QStyleOptionGraphicsItem) |
197 @param widget optional reference to the widget painted on (QWidget) |
197 @param widget optional reference to the widget painted on (QWidget) |
198 """ |
198 """ |
199 pen = self.pen() |
199 pen = self.pen() |
200 if ( |
200 if ( |
201 (option.state & QStyle.State_Selected) == |
201 (option.state & QStyle.StateFlag.State_Selected) == |
202 QStyle.State(QStyle.State_Selected) |
202 QStyle.State(QStyle.StateFlag.State_Selected) |
203 ): |
203 ): |
204 pen.setWidth(2) |
204 pen.setWidth(2) |
205 else: |
205 else: |
206 pen.setWidth(1) |
206 pen.setWidth(1) |
207 |
207 |