eric6/Documentation/Source/eric6.WebBrowser.History.HistoryModel.html

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

eric ide

mercurial