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

changeset 8296
14f33eededf7
parent 8294
cb4e5bbf3a2c
diff -r 3f5e8b0a338e -r 14f33eededf7 eric6/Documentation/Source/eric6.Graphics.ClassItem.html
--- a/eric6/Documentation/Source/eric6.Graphics.ClassItem.html	Sat May 08 18:34:08 2021 +0200
+++ b/eric6/Documentation/Source/eric6.Graphics.ClassItem.html	Sat May 08 18:35:00 2021 +0200
@@ -66,7 +66,11 @@
 <h3>Class Methods</h3>
 
 <table>
-<tr><td>None</td></tr>
+
+<tr>
+<td><a href="#ClassItem.fromDict">fromDict</a></td>
+<td>Class method to create a class item from persisted data.</td>
+</tr>
 </table>
 <h3>Methods</h3>
 
@@ -115,6 +119,37 @@
 <tr><td>None</td></tr>
 </table>
 
+<a NAME="ClassItem.fromDict" ID="ClassItem.fromDict"></a>
+<h4>ClassItem.fromDict (class method)</h4>
+<b>fromDict</b>(<i>data, colors=None</i>)
+
+<p>
+        Class method to create a class item from persisted data.
+</p>
+<dl>
+
+<dt><i>data</i> (dict)</dt>
+<dd>
+dictionary containing the persisted data as generated
+            by toDict()
+</dd>
+<dt><i>colors</i> (tuple of (QColor, QColor))</dt>
+<dd>
+tuple containing the foreground and background colors
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+created class item
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+ClassItem
+</dd>
+</dl>
 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a>
 <h4>ClassItem (Constructor)</h4>
 <b>ClassItem</b>(<i>model=None, external=False, x=0, y=0, rounded=False, noAttrs=False, colors=None, parent=None, scene=None</i>)

eric ide

mercurial