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

branch
eric7
changeset 10479
856476537696
parent 10436
f6881d10e995
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.WebBrowser.History.HistoryModel</h1> 9 <h1>eric7.WebBrowser.History.HistoryModel</h1>
10
11 <p> 10 <p>
12 Module implementing the history model. 11 Module implementing the history model.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#HistoryModel">HistoryModel</a></td> 22 <td><a href="#HistoryModel">HistoryModel</a></td>
25 <td>Class implementing the history model.</td> 23 <td>Class implementing the history model.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29
30 <table> 28 <table>
31 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
32 </table> 30 </table>
31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="HistoryModel" ID="HistoryModel"></a> 34 <a NAME="HistoryModel" ID="HistoryModel"></a>
36 <h2>HistoryModel</h2> 35 <h2>HistoryModel</h2>
37
38 <p> 36 <p>
39 Class implementing the history model. 37 Class implementing the history model.
40 </p> 38 </p>
39
41 <h3>Derived from</h3> 40 <h3>Derived from</h3>
42 QAbstractTableModel 41 QAbstractTableModel
43 <h3>Class Attributes</h3> 42 <h3>Class Attributes</h3>
44 43 <table>
45 <table> 44 <tr><td>DateRole</td></tr>
46 <tr><td>DateRole</td></tr><tr><td>DateTimeRole</td></tr><tr><td>MaxRole</td></tr><tr><td>TitleRole</td></tr><tr><td>UrlRole</td></tr><tr><td>UrlStringRole</td></tr><tr><td>VisitCountRole</td></tr> 45 <tr><td>DateTimeRole</td></tr>
47 </table> 46 <tr><td>MaxRole</td></tr>
47 <tr><td>TitleRole</td></tr>
48 <tr><td>UrlRole</td></tr>
49 <tr><td>UrlStringRole</td></tr>
50 <tr><td>VisitCountRole</td></tr>
51 </table>
52
48 <h3>Class Methods</h3> 53 <h3>Class Methods</h3>
49
50 <table> 54 <table>
51 <tr><td>None</td></tr> 55 <tr><td>None</td></tr>
52 </table> 56 </table>
57
53 <h3>Methods</h3> 58 <h3>Methods</h3>
54 59 <table>
55 <table>
56
57 <tr> 60 <tr>
58 <td><a href="#HistoryModel.__init__">HistoryModel</a></td> 61 <td><a href="#HistoryModel.__init__">HistoryModel</a></td>
59 <td>Constructor</td> 62 <td>Constructor</td>
60 </tr> 63 </tr>
61 <tr> 64 <tr>
89 <tr> 92 <tr>
90 <td><a href="#HistoryModel.rowCount">rowCount</a></td> 93 <td><a href="#HistoryModel.rowCount">rowCount</a></td>
91 <td>Public method to determine the number of rows.</td> 94 <td>Public method to determine the number of rows.</td>
92 </tr> 95 </tr>
93 </table> 96 </table>
97
94 <h3>Static Methods</h3> 98 <h3>Static Methods</h3>
95
96 <table> 99 <table>
97 <tr><td>None</td></tr> 100 <tr><td>None</td></tr>
98 </table> 101 </table>
102
99 103
100 <a NAME="HistoryModel.__init__" ID="HistoryModel.__init__"></a> 104 <a NAME="HistoryModel.__init__" ID="HistoryModel.__init__"></a>
101 <h4>HistoryModel (Constructor)</h4> 105 <h4>HistoryModel (Constructor)</h4>
102 <b>HistoryModel</b>(<i>historyManager, parent=None</i>) 106 <b>HistoryModel</b>(<i>historyManager, parent=None</i>)
103
104 <p> 107 <p>
105 Constructor 108 Constructor
106 </p> 109 </p>
110
107 <dl> 111 <dl>
108 112
109 <dt><i>historyManager</i> (HistoryManager)</dt> 113 <dt><i>historyManager</i> (HistoryManager)</dt>
110 <dd> 114 <dd>
111 reference to the history manager object 115 reference to the history manager object
116 </dd> 120 </dd>
117 </dl> 121 </dl>
118 <a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a> 122 <a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a>
119 <h4>HistoryModel.columnCount</h4> 123 <h4>HistoryModel.columnCount</h4>
120 <b>columnCount</b>(<i>parent=None</i>) 124 <b>columnCount</b>(<i>parent=None</i>)
121
122 <p> 125 <p>
123 Public method to get the number of columns. 126 Public method to get the number of columns.
124 </p> 127 </p>
128
125 <dl> 129 <dl>
126 130
127 <dt><i>parent</i> (QModelIndex)</dt> 131 <dt><i>parent</i> (QModelIndex)</dt>
128 <dd> 132 <dd>
129 index of parent 133 index of parent
142 </dd> 146 </dd>
143 </dl> 147 </dl>
144 <a NAME="HistoryModel.data" ID="HistoryModel.data"></a> 148 <a NAME="HistoryModel.data" ID="HistoryModel.data"></a>
145 <h4>HistoryModel.data</h4> 149 <h4>HistoryModel.data</h4>
146 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>) 150 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>)
147
148 <p> 151 <p>
149 Public method to get data from the model. 152 Public method to get data from the model.
150 </p> 153 </p>
154
151 <dl> 155 <dl>
152 156
153 <dt><i>index</i> (QModelIndex)</dt> 157 <dt><i>index</i> (QModelIndex)</dt>
154 <dd> 158 <dd>
155 index of history entry to get data for 159 index of history entry to get data for
172 </dd> 176 </dd>
173 </dl> 177 </dl>
174 <a NAME="HistoryModel.entryAdded" ID="HistoryModel.entryAdded"></a> 178 <a NAME="HistoryModel.entryAdded" ID="HistoryModel.entryAdded"></a>
175 <h4>HistoryModel.entryAdded</h4> 179 <h4>HistoryModel.entryAdded</h4>
176 <b>entryAdded</b>(<i></i>) 180 <b>entryAdded</b>(<i></i>)
177
178 <p> 181 <p>
179 Public slot to handle the addition of a history entry. 182 Public slot to handle the addition of a history entry.
180 </p> 183 </p>
184
181 <a NAME="HistoryModel.entryUpdated" ID="HistoryModel.entryUpdated"></a> 185 <a NAME="HistoryModel.entryUpdated" ID="HistoryModel.entryUpdated"></a>
182 <h4>HistoryModel.entryUpdated</h4> 186 <h4>HistoryModel.entryUpdated</h4>
183 <b>entryUpdated</b>(<i>row</i>) 187 <b>entryUpdated</b>(<i>row</i>)
184
185 <p> 188 <p>
186 Public slot to handle the update of a history entry. 189 Public slot to handle the update of a history entry.
187 </p> 190 </p>
191
188 <dl> 192 <dl>
189 193
190 <dt><i>row</i> (int)</dt> 194 <dt><i>row</i> (int)</dt>
191 <dd> 195 <dd>
192 row number of the updated entry 196 row number of the updated entry
193 </dd> 197 </dd>
194 </dl> 198 </dl>
195 <a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a> 199 <a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a>
196 <h4>HistoryModel.headerData</h4> 200 <h4>HistoryModel.headerData</h4>
197 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) 201 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
198
199 <p> 202 <p>
200 Public method to get the header data. 203 Public method to get the header data.
201 </p> 204 </p>
205
202 <dl> 206 <dl>
203 207
204 <dt><i>section</i> (int)</dt> 208 <dt><i>section</i> (int)</dt>
205 <dd> 209 <dd>
206 section number 210 section number
227 </dd> 231 </dd>
228 </dl> 232 </dl>
229 <a NAME="HistoryModel.historyReset" ID="HistoryModel.historyReset"></a> 233 <a NAME="HistoryModel.historyReset" ID="HistoryModel.historyReset"></a>
230 <h4>HistoryModel.historyReset</h4> 234 <h4>HistoryModel.historyReset</h4>
231 <b>historyReset</b>(<i></i>) 235 <b>historyReset</b>(<i></i>)
232
233 <p> 236 <p>
234 Public slot to reset the model. 237 Public slot to reset the model.
235 </p> 238 </p>
239
236 <a NAME="HistoryModel.removeRows" ID="HistoryModel.removeRows"></a> 240 <a NAME="HistoryModel.removeRows" ID="HistoryModel.removeRows"></a>
237 <h4>HistoryModel.removeRows</h4> 241 <h4>HistoryModel.removeRows</h4>
238 <b>removeRows</b>(<i>row, count, parent=None</i>) 242 <b>removeRows</b>(<i>row, count, parent=None</i>)
239
240 <p> 243 <p>
241 Public method to remove history entries from the model. 244 Public method to remove history entries from the model.
242 </p> 245 </p>
246
243 <dl> 247 <dl>
244 248
245 <dt><i>row</i> (int)</dt> 249 <dt><i>row</i> (int)</dt>
246 <dd> 250 <dd>
247 row of the first history entry to remove 251 row of the first history entry to remove
268 </dd> 272 </dd>
269 </dl> 273 </dl>
270 <a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a> 274 <a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a>
271 <h4>HistoryModel.rowCount</h4> 275 <h4>HistoryModel.rowCount</h4>
272 <b>rowCount</b>(<i>parent=None</i>) 276 <b>rowCount</b>(<i>parent=None</i>)
273
274 <p> 277 <p>
275 Public method to determine the number of rows. 278 Public method to determine the number of rows.
276 </p> 279 </p>
280
277 <dl> 281 <dl>
278 282
279 <dt><i>parent</i> (QModelIndex)</dt> 283 <dt><i>parent</i> (QModelIndex)</dt>
280 <dd> 284 <dd>
281 index of parent 285 index of parent

eric ide

mercurial