113 |
117 |
114 <table> |
118 <table> |
115 <tr><td>None</td></tr> |
119 <tr><td>None</td></tr> |
116 </table> |
120 </table> |
117 |
121 |
|
122 <a NAME="ClassItem.fromDict" ID="ClassItem.fromDict"></a> |
|
123 <h4>ClassItem.fromDict (class method)</h4> |
|
124 <b>fromDict</b>(<i>data, colors=None</i>) |
|
125 |
|
126 <p> |
|
127 Class method to create a class item from persisted data. |
|
128 </p> |
|
129 <dl> |
|
130 |
|
131 <dt><i>data</i> (dict)</dt> |
|
132 <dd> |
|
133 dictionary containing the persisted data as generated |
|
134 by toDict() |
|
135 </dd> |
|
136 <dt><i>colors</i> (tuple of (QColor, QColor))</dt> |
|
137 <dd> |
|
138 tuple containing the foreground and background colors |
|
139 </dd> |
|
140 </dl> |
|
141 <dl> |
|
142 <dt>Return:</dt> |
|
143 <dd> |
|
144 created class item |
|
145 </dd> |
|
146 </dl> |
|
147 <dl> |
|
148 <dt>Return Type:</dt> |
|
149 <dd> |
|
150 ClassItem |
|
151 </dd> |
|
152 </dl> |
118 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a> |
153 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a> |
119 <h4>ClassItem (Constructor)</h4> |
154 <h4>ClassItem (Constructor)</h4> |
120 <b>ClassItem</b>(<i>model=None, external=False, x=0, y=0, rounded=False, noAttrs=False, colors=None, parent=None, scene=None</i>) |
155 <b>ClassItem</b>(<i>model=None, external=False, x=0, y=0, rounded=False, noAttrs=False, colors=None, parent=None, scene=None</i>) |
121 |
156 |
122 <p> |
157 <p> |