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

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8596
d64760b2da50
child 10436
f6881d10e995
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.WebBrowser.History.HistoryModel</title>
4 <meta charset="UTF-8">
5 <link rel="stylesheet" href="styles.css">
6 </head>
7 <body>
8 <a NAME="top" ID="top"></a>
9 <h1>eric7.WebBrowser.History.HistoryModel</h1>
10
11 <p>
12 Module implementing the history model.
13 </p>
14 <h3>Global Attributes</h3>
15
16 <table>
17 <tr><td>None</td></tr>
18 </table>
19 <h3>Classes</h3>
20
21 <table>
22
23 <tr>
24 <td><a href="#HistoryModel">HistoryModel</a></td>
25 <td>Class implementing the history model.</td>
26 </tr>
27 </table>
28 <h3>Functions</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <hr />
34 <hr />
35 <a NAME="HistoryModel" ID="HistoryModel"></a>
36 <h2>HistoryModel</h2>
37
38 <p>
39 Class implementing the history model.
40 </p>
41 <h3>Derived from</h3>
42 QAbstractTableModel
43 <h3>Class Attributes</h3>
44
45 <table>
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>
47 </table>
48 <h3>Class Methods</h3>
49
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Methods</h3>
54
55 <table>
56
57 <tr>
58 <td><a href="#HistoryModel.__init__">HistoryModel</a></td>
59 <td>Constructor</td>
60 </tr>
61 <tr>
62 <td><a href="#HistoryModel.columnCount">columnCount</a></td>
63 <td>Public method to get the number of columns.</td>
64 </tr>
65 <tr>
66 <td><a href="#HistoryModel.data">data</a></td>
67 <td>Public method to get data from the model.</td>
68 </tr>
69 <tr>
70 <td><a href="#HistoryModel.entryAdded">entryAdded</a></td>
71 <td>Public slot to handle the addition of a history entry.</td>
72 </tr>
73 <tr>
74 <td><a href="#HistoryModel.entryUpdated">entryUpdated</a></td>
75 <td>Public slot to handle the update of a history entry.</td>
76 </tr>
77 <tr>
78 <td><a href="#HistoryModel.headerData">headerData</a></td>
79 <td>Public method to get the header data.</td>
80 </tr>
81 <tr>
82 <td><a href="#HistoryModel.historyReset">historyReset</a></td>
83 <td>Public slot to reset the model.</td>
84 </tr>
85 <tr>
86 <td><a href="#HistoryModel.removeRows">removeRows</a></td>
87 <td>Public method to remove history entries from the model.</td>
88 </tr>
89 <tr>
90 <td><a href="#HistoryModel.rowCount">rowCount</a></td>
91 <td>Public method to determine the number of rows.</td>
92 </tr>
93 </table>
94 <h3>Static Methods</h3>
95
96 <table>
97 <tr><td>None</td></tr>
98 </table>
99
100 <a NAME="HistoryModel.__init__" ID="HistoryModel.__init__"></a>
101 <h4>HistoryModel (Constructor)</h4>
102 <b>HistoryModel</b>(<i>historyManager, parent=None</i>)
103
104 <p>
105 Constructor
106 </p>
107 <dl>
108
109 <dt><i>historyManager</i></dt>
110 <dd>
111 reference to the history manager object
112 (HistoryManager)
113 </dd>
114 <dt><i>parent</i></dt>
115 <dd>
116 reference to the parent object (QObject)
117 </dd>
118 </dl>
119 <a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a>
120 <h4>HistoryModel.columnCount</h4>
121 <b>columnCount</b>(<i>parent=None</i>)
122
123 <p>
124 Public method to get the number of columns.
125 </p>
126 <dl>
127
128 <dt><i>parent</i></dt>
129 <dd>
130 index of parent (QModelIndex)
131 </dd>
132 </dl>
133 <dl>
134 <dt>Return:</dt>
135 <dd>
136 number of columns (integer)
137 </dd>
138 </dl>
139 <a NAME="HistoryModel.data" ID="HistoryModel.data"></a>
140 <h4>HistoryModel.data</h4>
141 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>)
142
143 <p>
144 Public method to get data from the model.
145 </p>
146 <dl>
147
148 <dt><i>index</i></dt>
149 <dd>
150 index of history entry to get data for (QModelIndex)
151 </dd>
152 <dt><i>role</i></dt>
153 <dd>
154 data role (integer)
155 </dd>
156 </dl>
157 <dl>
158 <dt>Return:</dt>
159 <dd>
160 history entry data
161 </dd>
162 </dl>
163 <a NAME="HistoryModel.entryAdded" ID="HistoryModel.entryAdded"></a>
164 <h4>HistoryModel.entryAdded</h4>
165 <b>entryAdded</b>(<i></i>)
166
167 <p>
168 Public slot to handle the addition of a history entry.
169 </p>
170 <a NAME="HistoryModel.entryUpdated" ID="HistoryModel.entryUpdated"></a>
171 <h4>HistoryModel.entryUpdated</h4>
172 <b>entryUpdated</b>(<i>row</i>)
173
174 <p>
175 Public slot to handle the update of a history entry.
176 </p>
177 <dl>
178
179 <dt><i>row</i></dt>
180 <dd>
181 row number of the updated entry (integer)
182 </dd>
183 </dl>
184 <a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a>
185 <h4>HistoryModel.headerData</h4>
186 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
187
188 <p>
189 Public method to get the header data.
190 </p>
191 <dl>
192
193 <dt><i>section</i></dt>
194 <dd>
195 section number (integer)
196 </dd>
197 <dt><i>orientation</i></dt>
198 <dd>
199 header orientation (Qt.Orientation)
200 </dd>
201 <dt><i>role</i></dt>
202 <dd>
203 data role (Qt.ItemDataRole)
204 </dd>
205 </dl>
206 <dl>
207 <dt>Return:</dt>
208 <dd>
209 header data
210 </dd>
211 </dl>
212 <a NAME="HistoryModel.historyReset" ID="HistoryModel.historyReset"></a>
213 <h4>HistoryModel.historyReset</h4>
214 <b>historyReset</b>(<i></i>)
215
216 <p>
217 Public slot to reset the model.
218 </p>
219 <a NAME="HistoryModel.removeRows" ID="HistoryModel.removeRows"></a>
220 <h4>HistoryModel.removeRows</h4>
221 <b>removeRows</b>(<i>row, count, parent=None</i>)
222
223 <p>
224 Public method to remove history entries from the model.
225 </p>
226 <dl>
227
228 <dt><i>row</i></dt>
229 <dd>
230 row of the first history entry to remove (integer)
231 </dd>
232 <dt><i>count</i></dt>
233 <dd>
234 number of history entries to remove (integer)
235 </dd>
236 <dt><i>parent</i></dt>
237 <dd>
238 index of the parent entry (QModelIndex)
239 </dd>
240 </dl>
241 <dl>
242 <dt>Return:</dt>
243 <dd>
244 flag indicating successful removal (boolean)
245 </dd>
246 </dl>
247 <a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a>
248 <h4>HistoryModel.rowCount</h4>
249 <b>rowCount</b>(<i>parent=None</i>)
250
251 <p>
252 Public method to determine the number of rows.
253 </p>
254 <dl>
255
256 <dt><i>parent</i></dt>
257 <dd>
258 index of parent (QModelIndex)
259 </dd>
260 </dl>
261 <dl>
262 <dt>Return:</dt>
263 <dd>
264 number of rows (integer)
265 </dd>
266 </dl>
267 <div align="right"><a href="#top">Up</a></div>
268 <hr />
269 </body></html>

eric ide

mercurial