182 @param painter reference to the painter object (QPainter) |
182 @param painter reference to the painter object (QPainter) |
183 @param option style options (QStyleOptionGraphicsItem) |
183 @param option style options (QStyleOptionGraphicsItem) |
184 @param widget optional reference to the widget painted on (QWidget) |
184 @param widget optional reference to the widget painted on (QWidget) |
185 """ |
185 """ |
186 pen = self.pen() |
186 pen = self.pen() |
187 if (option.state & QStyle.State_Selected) == \ |
187 if ( |
188 QStyle.State(QStyle.State_Selected): |
188 (option.state & QStyle.State_Selected) == |
|
189 QStyle.State(QStyle.State_Selected) |
|
190 ): |
189 pen.setWidth(2) |
191 pen.setWidth(2) |
190 else: |
192 else: |
191 pen.setWidth(1) |
193 pen.setWidth(1) |
192 |
194 |
193 painter.setPen(pen) |
195 painter.setPen(pen) |