Graphics/UMLItem.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2992
dbdf27746da5
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
183 @param painter reference to the painter object (QPainter) 183 @param painter reference to the painter object (QPainter)
184 @param option style options (QStyleOptionGraphicsItem) 184 @param option style options (QStyleOptionGraphicsItem)
185 @param widget optional reference to the widget painted on (QWidget) 185 @param widget optional reference to the widget painted on (QWidget)
186 """ 186 """
187 pen = self.pen() 187 pen = self.pen()
188 if (option.state & QStyle.State_Selected) == QStyle.State(QStyle.State_Selected): 188 if (option.state & QStyle.State_Selected) == \
189 QStyle.State(QStyle.State_Selected):
189 pen.setWidth(2) 190 pen.setWidth(2)
190 else: 191 else:
191 pen.setWidth(1) 192 pen.setWidth(1)
192 193
193 painter.setPen(pen) 194 painter.setPen(pen)
222 def buildItemDataString(self): 223 def buildItemDataString(self):
223 """ 224 """
224 Public method to build a string to persist the specific item data. 225 Public method to build a string to persist the specific item data.
225 226
226 This string must start with ", " and should be built like 227 This string must start with ", " and should be built like
227 "attribute=value" with pairs separated by ", ". value must not contain ", " 228 "attribute=value" with pairs separated by ", ". value must not
228 or newlines. 229 contain ", " or newlines.
229 230
230 @return persistence data (string) 231 @return persistence data (string)
231 """ 232 """
232 return "" 233 return ""
233 234

eric ide

mercurial