118 <td>Public method to report the supported drop actions.</td> |
118 <td>Public method to report the supported drop actions.</td> |
119 </tr> |
119 </tr> |
120 </table> |
120 </table> |
121 <a NAME="BookmarksModel.__init__" ID="BookmarksModel.__init__"></a> |
121 <a NAME="BookmarksModel.__init__" ID="BookmarksModel.__init__"></a> |
122 <h4>BookmarksModel (Constructor)</h4> |
122 <h4>BookmarksModel (Constructor)</h4> |
123 <b>BookmarksModel</b>(<i>manager, parent = None</i>) |
123 <b>BookmarksModel</b>(<i>manager, parent=None</i>) |
124 <p> |
124 <p> |
125 Constructor |
125 Constructor |
126 </p><dl> |
126 </p><dl> |
127 <dt><i>manager</i></dt> |
127 <dt><i>manager</i></dt> |
128 <dd> |
128 <dd> |
141 <dd> |
141 <dd> |
142 reference to the bookmarks manager object (BookmarksManager) |
142 reference to the bookmarks manager object (BookmarksManager) |
143 </dd> |
143 </dd> |
144 </dl><a NAME="BookmarksModel.columnCount" ID="BookmarksModel.columnCount"></a> |
144 </dl><a NAME="BookmarksModel.columnCount" ID="BookmarksModel.columnCount"></a> |
145 <h4>BookmarksModel.columnCount</h4> |
145 <h4>BookmarksModel.columnCount</h4> |
146 <b>columnCount</b>(<i>parent = QModelIndex()</i>) |
146 <b>columnCount</b>(<i>parent=QModelIndex()</i>) |
147 <p> |
147 <p> |
148 Public method to get the number of columns. |
148 Public method to get the number of columns. |
149 </p><dl> |
149 </p><dl> |
150 <dt><i>parent</i></dt> |
150 <dt><i>parent</i></dt> |
151 <dd> |
151 <dd> |
156 <dd> |
156 <dd> |
157 number of columns (integer) |
157 number of columns (integer) |
158 </dd> |
158 </dd> |
159 </dl><a NAME="BookmarksModel.data" ID="BookmarksModel.data"></a> |
159 </dl><a NAME="BookmarksModel.data" ID="BookmarksModel.data"></a> |
160 <h4>BookmarksModel.data</h4> |
160 <h4>BookmarksModel.data</h4> |
161 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) |
161 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
162 <p> |
162 <p> |
163 Public method to get data from the model. |
163 Public method to get data from the model. |
164 </p><dl> |
164 </p><dl> |
165 <dt><i>index</i></dt> |
165 <dt><i>index</i></dt> |
166 <dd> |
166 <dd> |
252 <dd> |
252 <dd> |
253 flags (Qt.ItemFlags) |
253 flags (Qt.ItemFlags) |
254 </dd> |
254 </dd> |
255 </dl><a NAME="BookmarksModel.hasChildren" ID="BookmarksModel.hasChildren"></a> |
255 </dl><a NAME="BookmarksModel.hasChildren" ID="BookmarksModel.hasChildren"></a> |
256 <h4>BookmarksModel.hasChildren</h4> |
256 <h4>BookmarksModel.hasChildren</h4> |
257 <b>hasChildren</b>(<i>parent = QModelIndex()</i>) |
257 <b>hasChildren</b>(<i>parent=QModelIndex()</i>) |
258 <p> |
258 <p> |
259 Public method to check, if a parent node has some children. |
259 Public method to check, if a parent node has some children. |
260 </p><dl> |
260 </p><dl> |
261 <dt><i>parent</i></dt> |
261 <dt><i>parent</i></dt> |
262 <dd> |
262 <dd> |
267 <dd> |
267 <dd> |
268 flag indicating the presence of children (boolean) |
268 flag indicating the presence of children (boolean) |
269 </dd> |
269 </dd> |
270 </dl><a NAME="BookmarksModel.headerData" ID="BookmarksModel.headerData"></a> |
270 </dl><a NAME="BookmarksModel.headerData" ID="BookmarksModel.headerData"></a> |
271 <h4>BookmarksModel.headerData</h4> |
271 <h4>BookmarksModel.headerData</h4> |
272 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) |
272 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>) |
273 <p> |
273 <p> |
274 Public method to get the header data. |
274 Public method to get the header data. |
275 </p><dl> |
275 </p><dl> |
276 <dt><i>section</i></dt> |
276 <dt><i>section</i></dt> |
277 <dd> |
277 <dd> |
288 <dd> |
288 <dd> |
289 header data |
289 header data |
290 </dd> |
290 </dd> |
291 </dl><a NAME="BookmarksModel.index" ID="BookmarksModel.index"></a> |
291 </dl><a NAME="BookmarksModel.index" ID="BookmarksModel.index"></a> |
292 <h4>BookmarksModel.index</h4> |
292 <h4>BookmarksModel.index</h4> |
293 <b>index</b>(<i>row, column, parent = QModelIndex()</i>) |
293 <b>index</b>(<i>row, column, parent=QModelIndex()</i>) |
294 <p> |
294 <p> |
295 Public method to get a model index for a node cell. |
295 Public method to get a model index for a node cell. |
296 </p><dl> |
296 </p><dl> |
297 <dt><i>row</i></dt> |
297 <dt><i>row</i></dt> |
298 <dd> |
298 <dd> |
364 <dd> |
364 <dd> |
365 model index (QModelIndex) |
365 model index (QModelIndex) |
366 </dd> |
366 </dd> |
367 </dl><a NAME="BookmarksModel.parent" ID="BookmarksModel.parent"></a> |
367 </dl><a NAME="BookmarksModel.parent" ID="BookmarksModel.parent"></a> |
368 <h4>BookmarksModel.parent</h4> |
368 <h4>BookmarksModel.parent</h4> |
369 <b>parent</b>(<i>index = QModelIndex()</i>) |
369 <b>parent</b>(<i>index=QModelIndex()</i>) |
370 <p> |
370 <p> |
371 Public method to get the index of the parent node. |
371 Public method to get the index of the parent node. |
372 </p><dl> |
372 </p><dl> |
373 <dt><i>index</i></dt> |
373 <dt><i>index</i></dt> |
374 <dd> |
374 <dd> |
379 <dd> |
379 <dd> |
380 index of the parent node (QModelIndex) |
380 index of the parent node (QModelIndex) |
381 </dd> |
381 </dd> |
382 </dl><a NAME="BookmarksModel.removeRows" ID="BookmarksModel.removeRows"></a> |
382 </dl><a NAME="BookmarksModel.removeRows" ID="BookmarksModel.removeRows"></a> |
383 <h4>BookmarksModel.removeRows</h4> |
383 <h4>BookmarksModel.removeRows</h4> |
384 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) |
384 <b>removeRows</b>(<i>row, count, parent=QModelIndex()</i>) |
385 <p> |
385 <p> |
386 Public method to remove bookmarks from the model. |
386 Public method to remove bookmarks from the model. |
387 </p><dl> |
387 </p><dl> |
388 <dt><i>row</i></dt> |
388 <dt><i>row</i></dt> |
389 <dd> |
389 <dd> |
400 <dd> |
400 <dd> |
401 flag indicating successful removal (boolean) |
401 flag indicating successful removal (boolean) |
402 </dd> |
402 </dd> |
403 </dl><a NAME="BookmarksModel.rowCount" ID="BookmarksModel.rowCount"></a> |
403 </dl><a NAME="BookmarksModel.rowCount" ID="BookmarksModel.rowCount"></a> |
404 <h4>BookmarksModel.rowCount</h4> |
404 <h4>BookmarksModel.rowCount</h4> |
405 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
405 <b>rowCount</b>(<i>parent=QModelIndex()</i>) |
406 <p> |
406 <p> |
407 Public method to determine the number of rows. |
407 Public method to determine the number of rows. |
408 </p><dl> |
408 </p><dl> |
409 <dt><i>parent</i></dt> |
409 <dt><i>parent</i></dt> |
410 <dd> |
410 <dd> |
415 <dd> |
415 <dd> |
416 number of rows (integer) |
416 number of rows (integer) |
417 </dd> |
417 </dd> |
418 </dl><a NAME="BookmarksModel.setData" ID="BookmarksModel.setData"></a> |
418 </dl><a NAME="BookmarksModel.setData" ID="BookmarksModel.setData"></a> |
419 <h4>BookmarksModel.setData</h4> |
419 <h4>BookmarksModel.setData</h4> |
420 <b>setData</b>(<i>index, value, role = Qt.EditRole</i>) |
420 <b>setData</b>(<i>index, value, role=Qt.EditRole</i>) |
421 <p> |
421 <p> |
422 Public method to set the data of a node cell. |
422 Public method to set the data of a node cell. |
423 </p><dl> |
423 </p><dl> |
424 <dt><i>index</i></dt> |
424 <dt><i>index</i></dt> |
425 <dd> |
425 <dd> |