Documentation/Source/eric5.Helpviewer.AdBlock.AdBlockModel.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Helpviewer.AdBlock.AdBlockModel</h1> 23 <h1>eric5.Helpviewer.AdBlock.AdBlockModel</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#109;&#111;&#100;&#101;&#108; &#102;&#111;&#114; &#116;&#104;&#101; &#65;&#100;&#66;&#108;&#111;&#99;&#107; &#100;&#105;&#97;&#108;&#111;&#103;. 25 Module implementing a model for the AdBlock dialog.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#AdBlockModel">AdBlockModel</a></td> 34 <td><a href="#AdBlockModel">AdBlockModel</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#109;&#111;&#100;&#101;&#108; &#102;&#111;&#114; &#116;&#104;&#101; &#65;&#100;&#66;&#108;&#111;&#99;&#107; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 35 <td>Class implementing a model for the AdBlock dialog.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="AdBlockModel" ID="AdBlockModel"></a> 43 <a NAME="AdBlockModel" ID="AdBlockModel"></a>
44 <h2>AdBlockModel</h2> 44 <h2>AdBlockModel</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#109;&#111;&#100;&#101;&#108; &#102;&#111;&#114; &#116;&#104;&#101; &#65;&#100;&#66;&#108;&#111;&#99;&#107; &#100;&#105;&#97;&#108;&#111;&#103;. 46 Class implementing a model for the AdBlock dialog.
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 QAbstractItemModel 49 QAbstractItemModel
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
53 </table> 53 </table>
54 <h3>Methods</h3> 54 <h3>Methods</h3>
55 <table> 55 <table>
56 <tr> 56 <tr>
57 <td><a href="#AdBlockModel.__init__">AdBlockModel</a></td> 57 <td><a href="#AdBlockModel.__init__">AdBlockModel</a></td>
58 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 58 <td>Constructor</td>
59 </tr><tr> 59 </tr><tr>
60 <td><a href="#AdBlockModel.__rulesChanged">__rulesChanged</a></td> 60 <td><a href="#AdBlockModel.__rulesChanged">__rulesChanged</a></td>
61 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115; &#105;&#110; &#114;&#117;&#108;&#101;&#115;.</td> 61 <td>Private slot to handle changes in rules.</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#AdBlockModel.columnCount">columnCount</a></td> 63 <td><a href="#AdBlockModel.columnCount">columnCount</a></td>
64 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115;.</td> 64 <td>Public method to get the number of columns.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#AdBlockModel.data">data</a></td> 66 <td><a href="#AdBlockModel.data">data</a></td>
67 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 67 <td>Public method to get data from the model.</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#AdBlockModel.flags">flags</a></td> 69 <td><a href="#AdBlockModel.flags">flags</a></td>
70 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#102;&#108;&#97;&#103;&#115; &#102;&#111;&#114; &#97; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108;.</td> 70 <td>Public method to get flags for a node cell.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#AdBlockModel.hasChildren">hasChildren</a></td> 72 <td><a href="#AdBlockModel.hasChildren">hasChildren</a></td>
73 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107;, &#105;&#102; &#97; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101; &#104;&#97;&#115; &#115;&#111;&#109;&#101; &#99;&#104;&#105;&#108;&#100;&#114;&#101;&#110;.</td> 73 <td>Public method to check, if a parent node has some children.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#AdBlockModel.headerData">headerData</a></td> 75 <td><a href="#AdBlockModel.headerData">headerData</a></td>
76 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97;.</td> 76 <td>Public method to get the header data.</td>
77 </tr><tr> 77 </tr><tr>
78 <td><a href="#AdBlockModel.index">index</a></td> 78 <td><a href="#AdBlockModel.index">index</a></td>
79 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#97; &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x &#102;&#111;&#114; &#97; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108;.</td> 79 <td>Public method to get a model index for a node cell.</td>
80 </tr><tr> 80 </tr><tr>
81 <td><a href="#AdBlockModel.parent">parent</a></td> 81 <td><a href="#AdBlockModel.parent">parent</a></td>
82 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101;.</td> 82 <td>Public method to get the index of the parent node.</td>
83 </tr><tr> 83 </tr><tr>
84 <td><a href="#AdBlockModel.removeRows">removeRows</a></td> 84 <td><a href="#AdBlockModel.removeRows">removeRows</a></td>
85 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 85 <td>Public method to remove bookmarks from the model.</td>
86 </tr><tr> 86 </tr><tr>
87 <td><a href="#AdBlockModel.rowCount">rowCount</a></td> 87 <td><a href="#AdBlockModel.rowCount">rowCount</a></td>
88 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#101;&#116;&#101;&#114;&#109;&#105;&#110;&#101; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115;.</td> 88 <td>Public method to determine the number of rows.</td>
89 </tr><tr> 89 </tr><tr>
90 <td><a href="#AdBlockModel.rule">rule</a></td> 90 <td><a href="#AdBlockModel.rule">rule</a></td>
91 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#117;&#108;&#101; &#103;&#105;v&#101;&#110; &#105;&#116;'&#115; &#105;&#110;&#100;&#101;x.</td> 91 <td>Public method to get the rule given it's index.</td>
92 </tr><tr> 92 </tr><tr>
93 <td><a href="#AdBlockModel.setData">setData</a></td> 93 <td><a href="#AdBlockModel.setData">setData</a></td>
94 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#111;&#102; &#97; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108;.</td> 94 <td>Public method to set the data of a node cell.</td>
95 </tr><tr> 95 </tr><tr>
96 <td><a href="#AdBlockModel.subscription">subscription</a></td> 96 <td><a href="#AdBlockModel.subscription">subscription</a></td>
97 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110; &#103;&#105;v&#101;&#110; &#105;&#116;'&#115; &#105;&#110;&#100;&#101;x.</td> 97 <td>Public method to get the subscription given it's index.</td>
98 </tr><tr> 98 </tr><tr>
99 <td><a href="#AdBlockModel.subscriptionIndex">subscriptionIndex</a></td> 99 <td><a href="#AdBlockModel.subscriptionIndex">subscriptionIndex</a></td>
100 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#97; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110;.</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 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 107 Constructor
108 </p><dl> 108 </p><dl>
109 <dt><i>parent</i></dt> 109 <dt><i>parent</i></dt>
110 <dd> 110 <dd>
111 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;) 111 reference to the parent object (QObject)
112 </dd> 112 </dd>
113 </dl><a NAME="AdBlockModel.__rulesChanged" ID="AdBlockModel.__rulesChanged"></a> 113 </dl><a NAME="AdBlockModel.__rulesChanged" ID="AdBlockModel.__rulesChanged"></a>
114 <h4>AdBlockModel.__rulesChanged</h4> 114 <h4>AdBlockModel.__rulesChanged</h4>
115 <b>__rulesChanged</b>(<i></i>) 115 <b>__rulesChanged</b>(<i></i>)
116 <p> 116 <p>
117 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115; &#105;&#110; &#114;&#117;&#108;&#101;&#115;. 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115;. 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>
126 &#105;&#110;&#100;&#101;x &#111;&#102; &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 126 index of parent (QModelIndex)
127 </dd> 127 </dd>
128 </dl><dl> 128 </dl><dl>
129 <dt>Returns:</dt> 129 <dt>Returns:</dt>
130 <dd> 130 <dd>
131 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 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>
141 &#105;&#110;&#100;&#101;x &#111;&#102; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#111;&#114; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 141 index of bookmark to get data for (QModelIndex)
142 </dd><dt><i>role</i></dt> 142 </dd><dt><i>role</i></dt>
143 <dd> 143 <dd>
144 &#100;&#97;&#116;&#97; &#114;&#111;&#108;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 144 data role (integer)
145 </dd> 145 </dd>
146 </dl><dl> 146 </dl><dl>
147 <dt>Returns:</dt> 147 <dt>Returns:</dt>
148 <dd> 148 <dd>
149 &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#100;&#97;&#116;&#97; 149 bookmark data
150 </dd> 150 </dd>
151 </dl><a NAME="AdBlockModel.flags" ID="AdBlockModel.flags"></a> 151 </dl><a NAME="AdBlockModel.flags" ID="AdBlockModel.flags"></a>
152 <h4>AdBlockModel.flags</h4> 152 <h4>AdBlockModel.flags</h4>
153 <b>flags</b>(<i>index</i>) 153 <b>flags</b>(<i>index</i>)
154 <p> 154 <p>
155 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#102;&#108;&#97;&#103;&#115; &#102;&#111;&#114; &#97; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108;. 155 Public method to get flags for a node cell.
156 </p><dl> 156 </p><dl>
157 <dt><i>index</i></dt> 157 <dt><i>index</i></dt>
158 <dd> 158 <dd>
159 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 159 index of the node cell (QModelIndex)
160 </dd> 160 </dd>
161 </dl><dl> 161 </dl><dl>
162 <dt>Returns:</dt> 162 <dt>Returns:</dt>
163 <dd> 163 <dd>
164 &#102;&#108;&#97;&#103;&#115; (&#81;&#116;.&#73;&#116;&#101;&#109;&#70;&#108;&#97;&#103;&#115;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107;, &#105;&#102; &#97; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101; &#104;&#97;&#115; &#115;&#111;&#109;&#101; &#99;&#104;&#105;&#108;&#100;&#114;&#101;&#110;. 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>
174 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 174 index of the parent node (QModelIndex)
175 </dd> 175 </dd>
176 </dl><dl> 176 </dl><dl>
177 <dt>Returns:</dt> 177 <dt>Returns:</dt>
178 <dd> 178 <dd>
179 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#112;&#114;&#101;&#115;&#101;&#110;&#99;&#101; &#111;&#102; &#99;&#104;&#105;&#108;&#100;&#114;&#101;&#110; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97;. 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>
189 &#115;&#101;&#99;&#116;&#105;&#111;&#110; &#110;&#117;&#109;&#98;&#101;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 189 section number (integer)
190 </dd><dt><i>orientation</i></dt> 190 </dd><dt><i>orientation</i></dt>
191 <dd> 191 <dd>
192 &#104;&#101;&#97;&#100;&#101;&#114; &#111;&#114;&#105;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; (&#81;&#116;.&#79;&#114;&#105;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;) 192 header orientation (Qt.Orientation)
193 </dd><dt><i>role</i></dt> 193 </dd><dt><i>role</i></dt>
194 <dd> 194 <dd>
195 &#100;&#97;&#116;&#97; &#114;&#111;&#108;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 195 data role (integer)
196 </dd> 196 </dd>
197 </dl><dl> 197 </dl><dl>
198 <dt>Returns:</dt> 198 <dt>Returns:</dt>
199 <dd> 199 <dd>
200 &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97; 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#97; &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x &#102;&#111;&#114; &#97; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108;. 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>
210 &#114;&#111;w &#110;&#117;&#109;&#98;&#101;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 210 row number (integer)
211 </dd><dt><i>column</i></dt> 211 </dd><dt><i>column</i></dt>
212 <dd> 212 <dd>
213 &#99;&#111;&#108;&#117;&#109;&#110; &#110;&#117;&#109;&#98;&#101;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 213 column number (integer)
214 </dd><dt><i>parent</i></dt> 214 </dd><dt><i>parent</i></dt>
215 <dd> 215 <dd>
216 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 216 index of the parent (QModelIndex)
217 </dd> 217 </dd>
218 </dl><dl> 218 </dl><dl>
219 <dt>Returns:</dt> 219 <dt>Returns:</dt>
220 <dd> 220 <dd>
221 &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101;. 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>
231 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 231 index of the child node (QModelIndex)
232 </dd> 232 </dd>
233 </dl><dl> 233 </dl><dl>
234 <dt>Returns:</dt> 234 <dt>Returns:</dt>
235 <dd> 235 <dd>
236 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 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>
246 &#114;&#111;w &#111;&#102; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 246 row of the first bookmark to remove (integer)
247 </dd><dt><i>count</i></dt> 247 </dd><dt><i>count</i></dt>
248 <dd> 248 <dd>
249 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#115; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 249 number of bookmarks to remove (integer)
250 </dd><dt><i>index</i></dt> 250 </dd><dt><i>index</i></dt>
251 <dd> 251 <dd>
252 &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#110;&#111;&#100;&#101; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 252 of the parent bookmark node (QModelIndex)
253 </dd> 253 </dd>
254 </dl><dl> 254 </dl><dl>
255 <dt>Returns:</dt> 255 <dt>Returns:</dt>
256 <dd> 256 <dd>
257 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115;&#102;&#117;&#108; &#114;&#101;&#109;&#111;v&#97;&#108; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#101;&#116;&#101;&#114;&#109;&#105;&#110;&#101; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115;. 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>
267 &#105;&#110;&#100;&#101;x &#111;&#102; &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 267 index of parent (QModelIndex)
268 </dd> 268 </dd>
269 </dl><dl> 269 </dl><dl>
270 <dt>Returns:</dt> 270 <dt>Returns:</dt>
271 <dd> 271 <dd>
272 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 272 number of rows (integer)
273 </dd> 273 </dd>
274 </dl><a NAME="AdBlockModel.rule" ID="AdBlockModel.rule"></a> 274 </dl><a NAME="AdBlockModel.rule" ID="AdBlockModel.rule"></a>
275 <h4>AdBlockModel.rule</h4> 275 <h4>AdBlockModel.rule</h4>
276 <b>rule</b>(<i>index</i>) 276 <b>rule</b>(<i>index</i>)
277 <p> 277 <p>
278 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#117;&#108;&#101; &#103;&#105;v&#101;&#110; &#105;&#116;'&#115; &#105;&#110;&#100;&#101;x. 278 Public method to get the rule given it's index.
279 </p><dl> 279 </p><dl>
280 <dt><i>index</i></dt> 280 <dt><i>index</i></dt>
281 <dd> 281 <dd>
282 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#114;&#117;&#108;&#101; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 282 index of the rule (QModelIndex)
283 </dd> 283 </dd>
284 </dl><dl> 284 </dl><dl>
285 <dt>Returns:</dt> 285 <dt>Returns:</dt>
286 <dd> 286 <dd>
287 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#114;&#117;&#108;&#101; (&#65;&#100;&#66;&#108;&#111;&#99;&#107;&#82;&#117;&#108;&#101;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#111;&#102; &#97; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108;. 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>
297 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#110;&#111;&#100;&#101; &#99;&#101;&#108;&#108; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 297 index of the node cell (QModelIndex)
298 </dd><dt><i>value</i></dt> 298 </dd><dt><i>value</i></dt>
299 <dd> 299 <dd>
300 v&#97;&#108;&#117;&#101; &#116;&#111; &#98;&#101; &#115;&#101;&#116; 300 value to be set
301 </dd><dt><i>role</i></dt> 301 </dd><dt><i>role</i></dt>
302 <dd> 302 <dd>
303 &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#100;&#97;&#116;&#97; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 303 role of the data (integer)
304 </dd> 304 </dd>
305 </dl><dl> 305 </dl><dl>
306 <dt>Returns:</dt> 306 <dt>Returns:</dt>
307 <dd> 307 <dd>
308 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 308 flag indicating success (boolean)
309 </dd> 309 </dd>
310 </dl><a NAME="AdBlockModel.subscription" ID="AdBlockModel.subscription"></a> 310 </dl><a NAME="AdBlockModel.subscription" ID="AdBlockModel.subscription"></a>
311 <h4>AdBlockModel.subscription</h4> 311 <h4>AdBlockModel.subscription</h4>
312 <b>subscription</b>(<i>index</i>) 312 <b>subscription</b>(<i>index</i>)
313 <p> 313 <p>
314 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110; &#103;&#105;v&#101;&#110; &#105;&#116;'&#115; &#105;&#110;&#100;&#101;x. 314 Public method to get the subscription given it's index.
315 </p><dl> 315 </p><dl>
316 <dt><i>index</i></dt> 316 <dt><i>index</i></dt>
317 <dd> 317 <dd>
318 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 318 index of the subscription (QModelIndex)
319 </dd> 319 </dd>
320 </dl><dl> 320 </dl><dl>
321 <dt>Returns:</dt> 321 <dt>Returns:</dt>
322 <dd> 322 <dd>
323 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110; (&#65;&#100;&#66;&#108;&#111;&#99;&#107;&#83;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110;) 323 reference to the subscription (AdBlockSubscription)
324 </dd> 324 </dd>
325 </dl><a NAME="AdBlockModel.subscriptionIndex" ID="AdBlockModel.subscriptionIndex"></a> 325 </dl><a NAME="AdBlockModel.subscriptionIndex" ID="AdBlockModel.subscriptionIndex"></a>
326 <h4>AdBlockModel.subscriptionIndex</h4> 326 <h4>AdBlockModel.subscriptionIndex</h4>
327 <b>subscriptionIndex</b>(<i>subscription</i>) 327 <b>subscriptionIndex</b>(<i>subscription</i>)
328 <p> 328 <p>
329 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#97; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110;. 329 Public method to get the index of a subscription.
330 </p><dl> 330 </p><dl>
331 <dt><i>subscription</i></dt> 331 <dt><i>subscription</i></dt>
332 <dd> 332 <dd>
333 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110; (&#65;&#100;&#66;&#108;&#111;&#99;&#107;&#83;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110;) 333 reference to the subscription (AdBlockSubscription)
334 </dd> 334 </dd>
335 </dl><dl> 335 </dl><dl>
336 <dt>Returns:</dt> 336 <dt>Returns:</dt>
337 <dd> 337 <dd>
338 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#115;&#117;&#98;&#115;&#99;&#114;&#105;&#112;&#116;&#105;&#111;&#110; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 338 index of the subscription (QModelIndex)
339 </dd> 339 </dd>
340 </dl> 340 </dl>
341 <div align="right"><a href="#top">Up</a></div> 341 <div align="right"><a href="#top">Up</a></div>
342 <hr /> 342 <hr />
343 </body></html> 343 </body></html>

eric ide

mercurial