100 <td>Public method to get the index of a subscription.</td> |
100 <td>Public method to get the index of a subscription.</td> |
101 </tr> |
101 </tr> |
102 </table> |
102 </table> |
103 <a NAME="AdBlockModel.__init__" ID="AdBlockModel.__init__"></a> |
103 <a NAME="AdBlockModel.__init__" ID="AdBlockModel.__init__"></a> |
104 <h4>AdBlockModel (Constructor)</h4> |
104 <h4>AdBlockModel (Constructor)</h4> |
105 <b>AdBlockModel</b>(<i>parent = None</i>) |
105 <b>AdBlockModel</b>(<i>parent=None</i>) |
106 <p> |
106 <p> |
107 Constructor |
107 Constructor |
108 </p><dl> |
108 </p><dl> |
109 <dt><i>parent</i></dt> |
109 <dt><i>parent</i></dt> |
110 <dd> |
110 <dd> |
115 <b>__rulesChanged</b>(<i></i>) |
115 <b>__rulesChanged</b>(<i></i>) |
116 <p> |
116 <p> |
117 Private slot to handle changes in rules. |
117 Private slot to handle changes in rules. |
118 </p><a NAME="AdBlockModel.columnCount" ID="AdBlockModel.columnCount"></a> |
118 </p><a NAME="AdBlockModel.columnCount" ID="AdBlockModel.columnCount"></a> |
119 <h4>AdBlockModel.columnCount</h4> |
119 <h4>AdBlockModel.columnCount</h4> |
120 <b>columnCount</b>(<i>parent = QModelIndex()</i>) |
120 <b>columnCount</b>(<i>parent=QModelIndex()</i>) |
121 <p> |
121 <p> |
122 Public method to get the number of columns. |
122 Public method to get the number of columns. |
123 </p><dl> |
123 </p><dl> |
124 <dt><i>parent</i></dt> |
124 <dt><i>parent</i></dt> |
125 <dd> |
125 <dd> |
130 <dd> |
130 <dd> |
131 number of columns (integer) |
131 number of columns (integer) |
132 </dd> |
132 </dd> |
133 </dl><a NAME="AdBlockModel.data" ID="AdBlockModel.data"></a> |
133 </dl><a NAME="AdBlockModel.data" ID="AdBlockModel.data"></a> |
134 <h4>AdBlockModel.data</h4> |
134 <h4>AdBlockModel.data</h4> |
135 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) |
135 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
136 <p> |
136 <p> |
137 Public method to get data from the model. |
137 Public method to get data from the model. |
138 </p><dl> |
138 </p><dl> |
139 <dt><i>index</i></dt> |
139 <dt><i>index</i></dt> |
140 <dd> |
140 <dd> |
163 <dd> |
163 <dd> |
164 flags (Qt.ItemFlags) |
164 flags (Qt.ItemFlags) |
165 </dd> |
165 </dd> |
166 </dl><a NAME="AdBlockModel.hasChildren" ID="AdBlockModel.hasChildren"></a> |
166 </dl><a NAME="AdBlockModel.hasChildren" ID="AdBlockModel.hasChildren"></a> |
167 <h4>AdBlockModel.hasChildren</h4> |
167 <h4>AdBlockModel.hasChildren</h4> |
168 <b>hasChildren</b>(<i>parent = QModelIndex()</i>) |
168 <b>hasChildren</b>(<i>parent=QModelIndex()</i>) |
169 <p> |
169 <p> |
170 Public method to check, if a parent node has some children. |
170 Public method to check, if a parent node has some children. |
171 </p><dl> |
171 </p><dl> |
172 <dt><i>parent</i></dt> |
172 <dt><i>parent</i></dt> |
173 <dd> |
173 <dd> |
178 <dd> |
178 <dd> |
179 flag indicating the presence of children (boolean) |
179 flag indicating the presence of children (boolean) |
180 </dd> |
180 </dd> |
181 </dl><a NAME="AdBlockModel.headerData" ID="AdBlockModel.headerData"></a> |
181 </dl><a NAME="AdBlockModel.headerData" ID="AdBlockModel.headerData"></a> |
182 <h4>AdBlockModel.headerData</h4> |
182 <h4>AdBlockModel.headerData</h4> |
183 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) |
183 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>) |
184 <p> |
184 <p> |
185 Public method to get the header data. |
185 Public method to get the header data. |
186 </p><dl> |
186 </p><dl> |
187 <dt><i>section</i></dt> |
187 <dt><i>section</i></dt> |
188 <dd> |
188 <dd> |
199 <dd> |
199 <dd> |
200 header data |
200 header data |
201 </dd> |
201 </dd> |
202 </dl><a NAME="AdBlockModel.index" ID="AdBlockModel.index"></a> |
202 </dl><a NAME="AdBlockModel.index" ID="AdBlockModel.index"></a> |
203 <h4>AdBlockModel.index</h4> |
203 <h4>AdBlockModel.index</h4> |
204 <b>index</b>(<i>row, column, parent = QModelIndex()</i>) |
204 <b>index</b>(<i>row, column, parent=QModelIndex()</i>) |
205 <p> |
205 <p> |
206 Public method to get a model index for a node cell. |
206 Public method to get a model index for a node cell. |
207 </p><dl> |
207 </p><dl> |
208 <dt><i>row</i></dt> |
208 <dt><i>row</i></dt> |
209 <dd> |
209 <dd> |
220 <dd> |
220 <dd> |
221 index (QModelIndex) |
221 index (QModelIndex) |
222 </dd> |
222 </dd> |
223 </dl><a NAME="AdBlockModel.parent" ID="AdBlockModel.parent"></a> |
223 </dl><a NAME="AdBlockModel.parent" ID="AdBlockModel.parent"></a> |
224 <h4>AdBlockModel.parent</h4> |
224 <h4>AdBlockModel.parent</h4> |
225 <b>parent</b>(<i>index = QModelIndex()</i>) |
225 <b>parent</b>(<i>index=QModelIndex()</i>) |
226 <p> |
226 <p> |
227 Public method to get the index of the parent node. |
227 Public method to get the index of the parent node. |
228 </p><dl> |
228 </p><dl> |
229 <dt><i>index</i></dt> |
229 <dt><i>index</i></dt> |
230 <dd> |
230 <dd> |
235 <dd> |
235 <dd> |
236 index of the parent node (QModelIndex) |
236 index of the parent node (QModelIndex) |
237 </dd> |
237 </dd> |
238 </dl><a NAME="AdBlockModel.removeRows" ID="AdBlockModel.removeRows"></a> |
238 </dl><a NAME="AdBlockModel.removeRows" ID="AdBlockModel.removeRows"></a> |
239 <h4>AdBlockModel.removeRows</h4> |
239 <h4>AdBlockModel.removeRows</h4> |
240 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) |
240 <b>removeRows</b>(<i>row, count, parent=QModelIndex()</i>) |
241 <p> |
241 <p> |
242 Public method to remove bookmarks from the model. |
242 Public method to remove bookmarks from the model. |
243 </p><dl> |
243 </p><dl> |
244 <dt><i>row</i></dt> |
244 <dt><i>row</i></dt> |
245 <dd> |
245 <dd> |
256 <dd> |
256 <dd> |
257 flag indicating successful removal (boolean) |
257 flag indicating successful removal (boolean) |
258 </dd> |
258 </dd> |
259 </dl><a NAME="AdBlockModel.rowCount" ID="AdBlockModel.rowCount"></a> |
259 </dl><a NAME="AdBlockModel.rowCount" ID="AdBlockModel.rowCount"></a> |
260 <h4>AdBlockModel.rowCount</h4> |
260 <h4>AdBlockModel.rowCount</h4> |
261 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
261 <b>rowCount</b>(<i>parent=QModelIndex()</i>) |
262 <p> |
262 <p> |
263 Public method to determine the number of rows. |
263 Public method to determine the number of rows. |
264 </p><dl> |
264 </p><dl> |
265 <dt><i>parent</i></dt> |
265 <dt><i>parent</i></dt> |
266 <dd> |
266 <dd> |
286 <dd> |
286 <dd> |
287 reference to the rule (AdBlockRule) |
287 reference to the rule (AdBlockRule) |
288 </dd> |
288 </dd> |
289 </dl><a NAME="AdBlockModel.setData" ID="AdBlockModel.setData"></a> |
289 </dl><a NAME="AdBlockModel.setData" ID="AdBlockModel.setData"></a> |
290 <h4>AdBlockModel.setData</h4> |
290 <h4>AdBlockModel.setData</h4> |
291 <b>setData</b>(<i>index, value, role = Qt.EditRole</i>) |
291 <b>setData</b>(<i>index, value, role=Qt.EditRole</i>) |
292 <p> |
292 <p> |
293 Public method to set the data of a node cell. |
293 Public method to set the data of a node cell. |
294 </p><dl> |
294 </p><dl> |
295 <dt><i>index</i></dt> |
295 <dt><i>index</i></dt> |
296 <dd> |
296 <dd> |