eric6/Documentation/Source/eric6.Graphics.ClassItem.html

changeset 8289
871b40c5a77a
parent 8281
184ece570a2b
child 8294
cb4e5bbf3a2c
equal deleted inserted replaced
8288:809d5d5ac2ba 8289:871b40c5a77a
184 contain ", " or newlines. 184 contain ", " or newlines.
185 </p> 185 </p>
186 <dl> 186 <dl>
187 <dt>Return:</dt> 187 <dt>Return:</dt>
188 <dd> 188 <dd>
189 persistence data (string) 189 persistence data
190 </dd>
191 </dl>
192 <dl>
193 <dt>Return Type:</dt>
194 <dd>
195 str
190 </dd> 196 </dd>
191 </dl> 197 </dl>
192 <a NAME="ClassItem.isExternal" ID="ClassItem.isExternal"></a> 198 <a NAME="ClassItem.isExternal" ID="ClassItem.isExternal"></a>
193 <h4>ClassItem.isExternal</h4> 199 <h4>ClassItem.isExternal</h4>
194 <b>isExternal</b>(<i></i>) 200 <b>isExternal</b>(<i></i>)
197 Public method returning the external state. 203 Public method returning the external state.
198 </p> 204 </p>
199 <dl> 205 <dl>
200 <dt>Return:</dt> 206 <dt>Return:</dt>
201 <dd> 207 <dd>
202 external state (boolean) 208 external state
209 </dd>
210 </dl>
211 <dl>
212 <dt>Return Type:</dt>
213 <dd>
214 bool
203 </dd> 215 </dd>
204 </dl> 216 </dl>
205 <a NAME="ClassItem.paint" ID="ClassItem.paint"></a> 217 <a NAME="ClassItem.paint" ID="ClassItem.paint"></a>
206 <h4>ClassItem.paint</h4> 218 <h4>ClassItem.paint</h4>
207 <b>paint</b>(<i>painter, option, widget=None</i>) 219 <b>paint</b>(<i>painter, option, widget=None</i>)
209 <p> 221 <p>
210 Public method to paint the item in local coordinates. 222 Public method to paint the item in local coordinates.
211 </p> 223 </p>
212 <dl> 224 <dl>
213 225
214 <dt><i>painter</i></dt> 226 <dt><i>painter</i> (QPainter)</dt>
215 <dd> 227 <dd>
216 reference to the painter object (QPainter) 228 reference to the painter object
217 </dd> 229 </dd>
218 <dt><i>option</i></dt> 230 <dt><i>option</i> (QStyleOptionGraphicsItem)</dt>
219 <dd> 231 <dd>
220 style options (QStyleOptionGraphicsItem) 232 style options
221 </dd> 233 </dd>
222 <dt><i>widget</i></dt> 234 <dt><i>widget</i> (QWidget)</dt>
223 <dd> 235 <dd>
224 optional reference to the widget painted on (QWidget) 236 optional reference to the widget painted on
225 </dd> 237 </dd>
226 </dl> 238 </dl>
227 <a NAME="ClassItem.parseItemDataString" ID="ClassItem.parseItemDataString"></a> 239 <a NAME="ClassItem.parseItemDataString" ID="ClassItem.parseItemDataString"></a>
228 <h4>ClassItem.parseItemDataString</h4> 240 <h4>ClassItem.parseItemDataString</h4>
229 <b>parseItemDataString</b>(<i>version, data</i>) 241 <b>parseItemDataString</b>(<i>version, data</i>)
231 <p> 243 <p>
232 Public method to parse the given persistence data. 244 Public method to parse the given persistence data.
233 </p> 245 </p>
234 <dl> 246 <dl>
235 247
236 <dt><i>version</i></dt> 248 <dt><i>version</i> (str)</dt>
237 <dd> 249 <dd>
238 version of the data (string) 250 version of the data
239 </dd> 251 </dd>
240 <dt><i>data</i></dt> 252 <dt><i>data</i> (str)</dt>
241 <dd> 253 <dd>
242 persisted data to be parsed (string) 254 persisted data to be parsed
243 </dd> 255 </dd>
244 </dl> 256 </dl>
245 <dl> 257 <dl>
246 <dt>Return:</dt> 258 <dt>Return:</dt>
247 <dd> 259 <dd>
248 flag indicating success (boolean) 260 flag indicating success
261 </dd>
262 </dl>
263 <dl>
264 <dt>Return Type:</dt>
265 <dd>
266 bool
249 </dd> 267 </dd>
250 </dl> 268 </dl>
251 <a NAME="ClassItem.setModel" ID="ClassItem.setModel"></a> 269 <a NAME="ClassItem.setModel" ID="ClassItem.setModel"></a>
252 <h4>ClassItem.setModel</h4> 270 <h4>ClassItem.setModel</h4>
253 <b>setModel</b>(<i>model</i>) 271 <b>setModel</b>(<i>model</i>)
255 <p> 273 <p>
256 Public method to set the class model. 274 Public method to set the class model.
257 </p> 275 </p>
258 <dl> 276 <dl>
259 277
260 <dt><i>model</i></dt> 278 <dt><i>model</i> (ClassModel)</dt>
261 <dd> 279 <dd>
262 class model containing the class data (ClassModel) 280 class model containing the class data
263 </dd> 281 </dd>
264 </dl> 282 </dl>
265 <div align="right"><a href="#top">Up</a></div> 283 <div align="right"><a href="#top">Up</a></div>
266 <hr /> 284 <hr />
267 <hr /> 285 <hr />

eric ide

mercurial