eric6/Graphics/UMLItem.py

changeset 7254
f00d825fbdb3
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7253:50dbe65a1334 7254:f00d825fbdb3
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)

eric ide

mercurial