src/eric7/Documentation/Source/eric7.WebBrowser.History.HistoryModel.html

branch
eric7
changeset 10436
f6881d10e995
parent 9209
b99e7fd55fd3
child 10479
856476537696
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
104 <p> 104 <p>
105 Constructor 105 Constructor
106 </p> 106 </p>
107 <dl> 107 <dl>
108 108
109 <dt><i>historyManager</i></dt> 109 <dt><i>historyManager</i> (HistoryManager)</dt>
110 <dd> 110 <dd>
111 reference to the history manager object 111 reference to the history manager object
112 (HistoryManager) 112 </dd>
113 </dd> 113 <dt><i>parent</i> (QObject)</dt>
114 <dt><i>parent</i></dt> 114 <dd>
115 <dd> 115 reference to the parent object
116 reference to the parent object (QObject)
117 </dd> 116 </dd>
118 </dl> 117 </dl>
119 <a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a> 118 <a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a>
120 <h4>HistoryModel.columnCount</h4> 119 <h4>HistoryModel.columnCount</h4>
121 <b>columnCount</b>(<i>parent=None</i>) 120 <b>columnCount</b>(<i>parent=None</i>)
123 <p> 122 <p>
124 Public method to get the number of columns. 123 Public method to get the number of columns.
125 </p> 124 </p>
126 <dl> 125 <dl>
127 126
128 <dt><i>parent</i></dt> 127 <dt><i>parent</i> (QModelIndex)</dt>
129 <dd> 128 <dd>
130 index of parent (QModelIndex) 129 index of parent
131 </dd> 130 </dd>
132 </dl> 131 </dl>
133 <dl> 132 <dl>
134 <dt>Return:</dt> 133 <dt>Return:</dt>
135 <dd> 134 <dd>
136 number of columns (integer) 135 number of columns
136 </dd>
137 </dl>
138 <dl>
139 <dt>Return Type:</dt>
140 <dd>
141 int
137 </dd> 142 </dd>
138 </dl> 143 </dl>
139 <a NAME="HistoryModel.data" ID="HistoryModel.data"></a> 144 <a NAME="HistoryModel.data" ID="HistoryModel.data"></a>
140 <h4>HistoryModel.data</h4> 145 <h4>HistoryModel.data</h4>
141 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>) 146 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>)
143 <p> 148 <p>
144 Public method to get data from the model. 149 Public method to get data from the model.
145 </p> 150 </p>
146 <dl> 151 <dl>
147 152
148 <dt><i>index</i></dt> 153 <dt><i>index</i> (QModelIndex)</dt>
149 <dd> 154 <dd>
150 index of history entry to get data for (QModelIndex) 155 index of history entry to get data for
151 </dd> 156 </dd>
152 <dt><i>role</i></dt> 157 <dt><i>role</i> (int)</dt>
153 <dd> 158 <dd>
154 data role (integer) 159 data role
155 </dd> 160 </dd>
156 </dl> 161 </dl>
157 <dl> 162 <dl>
158 <dt>Return:</dt> 163 <dt>Return:</dt>
159 <dd> 164 <dd>
160 history entry data 165 history entry data
166 </dd>
167 </dl>
168 <dl>
169 <dt>Return Type:</dt>
170 <dd>
171 Any
161 </dd> 172 </dd>
162 </dl> 173 </dl>
163 <a NAME="HistoryModel.entryAdded" ID="HistoryModel.entryAdded"></a> 174 <a NAME="HistoryModel.entryAdded" ID="HistoryModel.entryAdded"></a>
164 <h4>HistoryModel.entryAdded</h4> 175 <h4>HistoryModel.entryAdded</h4>
165 <b>entryAdded</b>(<i></i>) 176 <b>entryAdded</b>(<i></i>)
174 <p> 185 <p>
175 Public slot to handle the update of a history entry. 186 Public slot to handle the update of a history entry.
176 </p> 187 </p>
177 <dl> 188 <dl>
178 189
179 <dt><i>row</i></dt> 190 <dt><i>row</i> (int)</dt>
180 <dd> 191 <dd>
181 row number of the updated entry (integer) 192 row number of the updated entry
182 </dd> 193 </dd>
183 </dl> 194 </dl>
184 <a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a> 195 <a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a>
185 <h4>HistoryModel.headerData</h4> 196 <h4>HistoryModel.headerData</h4>
186 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) 197 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
188 <p> 199 <p>
189 Public method to get the header data. 200 Public method to get the header data.
190 </p> 201 </p>
191 <dl> 202 <dl>
192 203
193 <dt><i>section</i></dt> 204 <dt><i>section</i> (int)</dt>
194 <dd> 205 <dd>
195 section number (integer) 206 section number
196 </dd> 207 </dd>
197 <dt><i>orientation</i></dt> 208 <dt><i>orientation</i> (Qt.Orientation)</dt>
198 <dd> 209 <dd>
199 header orientation (Qt.Orientation) 210 header orientation
200 </dd> 211 </dd>
201 <dt><i>role</i></dt> 212 <dt><i>role</i> (Qt.ItemDataRole)</dt>
202 <dd> 213 <dd>
203 data role (Qt.ItemDataRole) 214 data role
204 </dd> 215 </dd>
205 </dl> 216 </dl>
206 <dl> 217 <dl>
207 <dt>Return:</dt> 218 <dt>Return:</dt>
208 <dd> 219 <dd>
209 header data 220 header data
221 </dd>
222 </dl>
223 <dl>
224 <dt>Return Type:</dt>
225 <dd>
226 Any
210 </dd> 227 </dd>
211 </dl> 228 </dl>
212 <a NAME="HistoryModel.historyReset" ID="HistoryModel.historyReset"></a> 229 <a NAME="HistoryModel.historyReset" ID="HistoryModel.historyReset"></a>
213 <h4>HistoryModel.historyReset</h4> 230 <h4>HistoryModel.historyReset</h4>
214 <b>historyReset</b>(<i></i>) 231 <b>historyReset</b>(<i></i>)
223 <p> 240 <p>
224 Public method to remove history entries from the model. 241 Public method to remove history entries from the model.
225 </p> 242 </p>
226 <dl> 243 <dl>
227 244
228 <dt><i>row</i></dt> 245 <dt><i>row</i> (int)</dt>
229 <dd> 246 <dd>
230 row of the first history entry to remove (integer) 247 row of the first history entry to remove
231 </dd> 248 </dd>
232 <dt><i>count</i></dt> 249 <dt><i>count</i> (int)</dt>
233 <dd> 250 <dd>
234 number of history entries to remove (integer) 251 number of history entries to remove
235 </dd> 252 </dd>
236 <dt><i>parent</i></dt> 253 <dt><i>parent</i> (QModelIndex)</dt>
237 <dd> 254 <dd>
238 index of the parent entry (QModelIndex) 255 index of the parent entry
239 </dd> 256 </dd>
240 </dl> 257 </dl>
241 <dl> 258 <dl>
242 <dt>Return:</dt> 259 <dt>Return:</dt>
243 <dd> 260 <dd>
244 flag indicating successful removal (boolean) 261 flag indicating successful removal
262 </dd>
263 </dl>
264 <dl>
265 <dt>Return Type:</dt>
266 <dd>
267 bool
245 </dd> 268 </dd>
246 </dl> 269 </dl>
247 <a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a> 270 <a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a>
248 <h4>HistoryModel.rowCount</h4> 271 <h4>HistoryModel.rowCount</h4>
249 <b>rowCount</b>(<i>parent=None</i>) 272 <b>rowCount</b>(<i>parent=None</i>)
251 <p> 274 <p>
252 Public method to determine the number of rows. 275 Public method to determine the number of rows.
253 </p> 276 </p>
254 <dl> 277 <dl>
255 278
256 <dt><i>parent</i></dt> 279 <dt><i>parent</i> (QModelIndex)</dt>
257 <dd> 280 <dd>
258 index of parent (QModelIndex) 281 index of parent
259 </dd> 282 </dd>
260 </dl> 283 </dl>
261 <dl> 284 <dl>
262 <dt>Return:</dt> 285 <dt>Return:</dt>
263 <dd> 286 <dd>
264 number of rows (integer) 287 number of rows
288 </dd>
289 </dl>
290 <dl>
291 <dt>Return Type:</dt>
292 <dd>
293 int
265 </dd> 294 </dd>
266 </dl> 295 </dl>
267 <div align="right"><a href="#top">Up</a></div> 296 <div align="right"><a href="#top">Up</a></div>
268 <hr /> 297 <hr />
269 </body></html> 298 </body></html>

eric ide

mercurial