122 <p> |
125 <p> |
123 Public slot to save the Debugger General (1) configuration. |
126 Public slot to save the Debugger General (1) configuration. |
124 </p> |
127 </p> |
125 <div align="right"><a href="#top">Up</a></div> |
128 <div align="right"><a href="#top">Up</a></div> |
126 <hr /><hr /> |
129 <hr /><hr /> |
|
130 <a NAME="PreviewModel" ID="PreviewModel"></a> |
|
131 <h2>PreviewModel</h2> |
|
132 <p> |
|
133 Class to show an example of the selected background colours for the debug |
|
134 viewer. |
|
135 </p> |
|
136 <h3>Derived from</h3> |
|
137 QAbstractItemModel |
|
138 <h3>Class Attributes</h3> |
|
139 <table> |
|
140 <tr><td>None</td></tr> |
|
141 </table> |
|
142 <h3>Class Methods</h3> |
|
143 <table> |
|
144 <tr><td>None</td></tr> |
|
145 </table> |
|
146 <h3>Methods</h3> |
|
147 <table> |
|
148 <tr> |
|
149 <td><a href="#PreviewModel.__init__">PreviewModel</a></td> |
|
150 <td>Constructor</td> |
|
151 </tr><tr> |
|
152 <td><a href="#PreviewModel.columnCount">columnCount</a></td> |
|
153 <td>Public Qt slot to get the column count.</td> |
|
154 </tr><tr> |
|
155 <td><a href="#PreviewModel.data">data</a></td> |
|
156 <td>Public Qt slot get the role data of item.</td> |
|
157 </tr><tr> |
|
158 <td><a href="#PreviewModel.flags">flags</a></td> |
|
159 <td>Public Qt slot to get the item flags.</td> |
|
160 </tr><tr> |
|
161 <td><a href="#PreviewModel.index">index</a></td> |
|
162 <td>Public Qt slot to get the index of item at row:column of parent.</td> |
|
163 </tr><tr> |
|
164 <td><a href="#PreviewModel.parent">parent</a></td> |
|
165 <td>Public Qt slot to get the parent of the given child.</td> |
|
166 </tr><tr> |
|
167 <td><a href="#PreviewModel.rowCount">rowCount</a></td> |
|
168 <td>Public Qt slot to get the row count.</td> |
|
169 </tr><tr> |
|
170 <td><a href="#PreviewModel.setColor">setColor</a></td> |
|
171 <td>Public slot to update the background colour indexed by key.</td> |
|
172 </tr> |
|
173 </table> |
|
174 <h3>Static Methods</h3> |
|
175 <table> |
|
176 <tr><td>None</td></tr> |
|
177 </table> |
|
178 <a NAME="PreviewModel.__init__" ID="PreviewModel.__init__"></a> |
|
179 <h4>PreviewModel (Constructor)</h4> |
|
180 <b>PreviewModel</b>(<i></i>) |
|
181 <p> |
|
182 Constructor |
|
183 </p><a NAME="PreviewModel.columnCount" ID="PreviewModel.columnCount"></a> |
|
184 <h4>PreviewModel.columnCount</h4> |
|
185 <b>columnCount</b>(<i>parent=QModelIndex()</i>) |
|
186 <p> |
|
187 Public Qt slot to get the column count. |
|
188 </p><dl> |
|
189 <dt><i>parent</i> (QModelIndex)</dt> |
|
190 <dd> |
|
191 the model parent |
|
192 </dd> |
|
193 </dl><dl> |
|
194 <dt>Returns:</dt> |
|
195 <dd> |
|
196 number of columns |
|
197 </dd> |
|
198 </dl><dl> |
|
199 <dt>Return Type:</dt> |
|
200 <dd> |
|
201 int |
|
202 </dd> |
|
203 </dl><a NAME="PreviewModel.data" ID="PreviewModel.data"></a> |
|
204 <h4>PreviewModel.data</h4> |
|
205 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
|
206 <p> |
|
207 Public Qt slot get the role data of item. |
|
208 </p><dl> |
|
209 <dt><i>index</i> (QModelIndex)</dt> |
|
210 <dd> |
|
211 the model index |
|
212 </dd><dt><i>role</i> (QtCore.Qt.ItemDataRole)</dt> |
|
213 <dd> |
|
214 the requested data role |
|
215 </dd> |
|
216 </dl><dl> |
|
217 <dt>Returns:</dt> |
|
218 <dd> |
|
219 role data of item |
|
220 </dd> |
|
221 </dl><dl> |
|
222 <dt>Return Type:</dt> |
|
223 <dd> |
|
224 str, QBrush or None |
|
225 </dd> |
|
226 </dl><a NAME="PreviewModel.flags" ID="PreviewModel.flags"></a> |
|
227 <h4>PreviewModel.flags</h4> |
|
228 <b>flags</b>(<i>index</i>) |
|
229 <p> |
|
230 Public Qt slot to get the item flags. |
|
231 </p><dl> |
|
232 <dt><i>index</i> (QModelIndex)</dt> |
|
233 <dd> |
|
234 of item |
|
235 </dd> |
|
236 </dl><dl> |
|
237 <dt>Returns:</dt> |
|
238 <dd> |
|
239 item flags |
|
240 </dd> |
|
241 </dl><dl> |
|
242 <dt>Return Type:</dt> |
|
243 <dd> |
|
244 QtCore.Qt.ItemFlag |
|
245 </dd> |
|
246 </dl><a NAME="PreviewModel.index" ID="PreviewModel.index"></a> |
|
247 <h4>PreviewModel.index</h4> |
|
248 <b>index</b>(<i>row, column, parent=QModelIndex()</i>) |
|
249 <p> |
|
250 Public Qt slot to get the index of item at row:column of parent. |
|
251 </p><dl> |
|
252 <dt><i>row</i> (int)</dt> |
|
253 <dd> |
|
254 number of rows |
|
255 </dd><dt><i>column</i> (int)</dt> |
|
256 <dd> |
|
257 number of columns |
|
258 </dd><dt><i>parent</i> (QModelIndex)</dt> |
|
259 <dd> |
|
260 the model parent |
|
261 </dd> |
|
262 </dl><dl> |
|
263 <dt>Returns:</dt> |
|
264 <dd> |
|
265 new model index for child |
|
266 </dd> |
|
267 </dl><dl> |
|
268 <dt>Return Type:</dt> |
|
269 <dd> |
|
270 QModelIndex |
|
271 </dd> |
|
272 </dl><a NAME="PreviewModel.parent" ID="PreviewModel.parent"></a> |
|
273 <h4>PreviewModel.parent</h4> |
|
274 <b>parent</b>(<i>child</i>) |
|
275 <p> |
|
276 Public Qt slot to get the parent of the given child. |
|
277 </p><dl> |
|
278 <dt><i>child</i> (QModelIndex)</dt> |
|
279 <dd> |
|
280 the model child node |
|
281 </dd> |
|
282 </dl><dl> |
|
283 <dt>Returns:</dt> |
|
284 <dd> |
|
285 new model index for parent |
|
286 </dd> |
|
287 </dl><dl> |
|
288 <dt>Return Type:</dt> |
|
289 <dd> |
|
290 QModelIndex |
|
291 </dd> |
|
292 </dl><a NAME="PreviewModel.rowCount" ID="PreviewModel.rowCount"></a> |
|
293 <h4>PreviewModel.rowCount</h4> |
|
294 <b>rowCount</b>(<i>parent=QModelIndex()</i>) |
|
295 <p> |
|
296 Public Qt slot to get the row count. |
|
297 </p><dl> |
|
298 <dt><i>parent</i> (QModelIndex)</dt> |
|
299 <dd> |
|
300 the model parent |
|
301 </dd> |
|
302 </dl><dl> |
|
303 <dt>Returns:</dt> |
|
304 <dd> |
|
305 number of rows |
|
306 </dd> |
|
307 </dl><dl> |
|
308 <dt>Return Type:</dt> |
|
309 <dd> |
|
310 int |
|
311 </dd> |
|
312 </dl><a NAME="PreviewModel.setColor" ID="PreviewModel.setColor"></a> |
|
313 <h4>PreviewModel.setColor</h4> |
|
314 <b>setColor</b>(<i>key, bgcolour</i>) |
|
315 <p> |
|
316 Public slot to update the background colour indexed by key. |
|
317 </p><dl> |
|
318 <dt><i>key</i> (str)</dt> |
|
319 <dd> |
|
320 the name of background |
|
321 </dd><dt><i>bgcolour</i> (QColor)</dt> |
|
322 <dd> |
|
323 the new background colour |
|
324 </dd> |
|
325 </dl> |
|
326 <div align="right"><a href="#top">Up</a></div> |
|
327 <hr /><hr /> |
127 <a NAME="create" ID="create"></a> |
328 <a NAME="create" ID="create"></a> |
128 <h2>create</h2> |
329 <h2>create</h2> |
129 <b>create</b>(<i>dlg</i>) |
330 <b>create</b>(<i>dlg</i>) |
130 <p> |
331 <p> |
131 Module function to create the configuration page. |
332 Module function to create the configuration page. |