Documentation/Source/eric5.Helpviewer.History.HistoryTreeModel.html

changeset 945
8cd4d08fa9f6
parent 440
69ace3e2dcf6
child 1228
7afaf2fca55b
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
106 <td>Public method to set the source model.</td> 106 <td>Public method to set the source model.</td>
107 </tr> 107 </tr>
108 </table> 108 </table>
109 <a NAME="HistoryTreeModel.__init__" ID="HistoryTreeModel.__init__"></a> 109 <a NAME="HistoryTreeModel.__init__" ID="HistoryTreeModel.__init__"></a>
110 <h4>HistoryTreeModel (Constructor)</h4> 110 <h4>HistoryTreeModel (Constructor)</h4>
111 <b>HistoryTreeModel</b>(<i>sourceModel, parent = None</i>) 111 <b>HistoryTreeModel</b>(<i>sourceModel, parent=None</i>)
112 <p> 112 <p>
113 Constructor 113 Constructor
114 </p><dl> 114 </p><dl>
115 <dt><i>sourceModel</i></dt> 115 <dt><i>sourceModel</i></dt>
116 <dd> 116 <dd>
121 </dd> 121 </dd>
122 </dl><a NAME="HistoryTreeModel.__sourceDateRow" ID="HistoryTreeModel.__sourceDateRow"></a> 122 </dl><a NAME="HistoryTreeModel.__sourceDateRow" ID="HistoryTreeModel.__sourceDateRow"></a>
123 <h4>HistoryTreeModel.__sourceDateRow</h4> 123 <h4>HistoryTreeModel.__sourceDateRow</h4>
124 <b>__sourceDateRow</b>(<i>row</i>) 124 <b>__sourceDateRow</b>(<i>row</i>)
125 <p> 125 <p>
126 Private method to translate the top level date row into the offset 126 Private method to translate the top level date row into the offset
127 where that date starts. 127 where that date starts.
128 </p><dl> 128 </p><dl>
129 <dt><i>row</i></dt> 129 <dt><i>row</i></dt>
130 <dd> 130 <dd>
131 row number of the date (integer) 131 row number of the date (integer)
172 <dd> 172 <dd>
173 end row (integer) 173 end row (integer)
174 </dd> 174 </dd>
175 </dl><a NAME="HistoryTreeModel.columnCount" ID="HistoryTreeModel.columnCount"></a> 175 </dl><a NAME="HistoryTreeModel.columnCount" ID="HistoryTreeModel.columnCount"></a>
176 <h4>HistoryTreeModel.columnCount</h4> 176 <h4>HistoryTreeModel.columnCount</h4>
177 <b>columnCount</b>(<i>parent = QModelIndex()</i>) 177 <b>columnCount</b>(<i>parent=QModelIndex()</i>)
178 <p> 178 <p>
179 Public method to get the number of columns. 179 Public method to get the number of columns.
180 </p><dl> 180 </p><dl>
181 <dt><i>parent</i></dt> 181 <dt><i>parent</i></dt>
182 <dd> 182 <dd>
187 <dd> 187 <dd>
188 number of columns (integer) 188 number of columns (integer)
189 </dd> 189 </dd>
190 </dl><a NAME="HistoryTreeModel.data" ID="HistoryTreeModel.data"></a> 190 </dl><a NAME="HistoryTreeModel.data" ID="HistoryTreeModel.data"></a>
191 <h4>HistoryTreeModel.data</h4> 191 <h4>HistoryTreeModel.data</h4>
192 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) 192 <b>data</b>(<i>index, role=Qt.DisplayRole</i>)
193 <p> 193 <p>
194 Public method to get data from the model. 194 Public method to get data from the model.
195 </p><dl> 195 </p><dl>
196 <dt><i>index</i></dt> 196 <dt><i>index</i></dt>
197 <dd> 197 <dd>
220 <dd> 220 <dd>
221 flags (Qt.ItemFlags) 221 flags (Qt.ItemFlags)
222 </dd> 222 </dd>
223 </dl><a NAME="HistoryTreeModel.hasChildren" ID="HistoryTreeModel.hasChildren"></a> 223 </dl><a NAME="HistoryTreeModel.hasChildren" ID="HistoryTreeModel.hasChildren"></a>
224 <h4>HistoryTreeModel.hasChildren</h4> 224 <h4>HistoryTreeModel.hasChildren</h4>
225 <b>hasChildren</b>(<i>parent = QModelIndex()</i>) 225 <b>hasChildren</b>(<i>parent=QModelIndex()</i>)
226 <p> 226 <p>
227 Public method to check, if an entry has some children. 227 Public method to check, if an entry has some children.
228 </p><dl> 228 </p><dl>
229 <dt><i>parent</i></dt> 229 <dt><i>parent</i></dt>
230 <dd> 230 <dd>
235 <dd> 235 <dd>
236 flag indicating the presence of children (boolean) 236 flag indicating the presence of children (boolean)
237 </dd> 237 </dd>
238 </dl><a NAME="HistoryTreeModel.headerData" ID="HistoryTreeModel.headerData"></a> 238 </dl><a NAME="HistoryTreeModel.headerData" ID="HistoryTreeModel.headerData"></a>
239 <h4>HistoryTreeModel.headerData</h4> 239 <h4>HistoryTreeModel.headerData</h4>
240 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) 240 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>)
241 <p> 241 <p>
242 Public method to get the header data. 242 Public method to get the header data.
243 </p><dl> 243 </p><dl>
244 <dt><i>section</i></dt> 244 <dt><i>section</i></dt>
245 <dd> 245 <dd>
256 <dd> 256 <dd>
257 header data 257 header data
258 </dd> 258 </dd>
259 </dl><a NAME="HistoryTreeModel.index" ID="HistoryTreeModel.index"></a> 259 </dl><a NAME="HistoryTreeModel.index" ID="HistoryTreeModel.index"></a>
260 <h4>HistoryTreeModel.index</h4> 260 <h4>HistoryTreeModel.index</h4>
261 <b>index</b>(<i>row, column, parent = QModelIndex()</i>) 261 <b>index</b>(<i>row, column, parent=QModelIndex()</i>)
262 <p> 262 <p>
263 Public method to create an index. 263 Public method to create an index.
264 </p><dl> 264 </p><dl>
265 <dt><i>row</i></dt> 265 <dt><i>row</i></dt>
266 <dd> 266 <dd>
322 <dd> 322 <dd>
323 index of parent (QModelIndex) 323 index of parent (QModelIndex)
324 </dd> 324 </dd>
325 </dl><a NAME="HistoryTreeModel.removeRows" ID="HistoryTreeModel.removeRows"></a> 325 </dl><a NAME="HistoryTreeModel.removeRows" ID="HistoryTreeModel.removeRows"></a>
326 <h4>HistoryTreeModel.removeRows</h4> 326 <h4>HistoryTreeModel.removeRows</h4>
327 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) 327 <b>removeRows</b>(<i>row, count, parent=QModelIndex()</i>)
328 <p> 328 <p>
329 Public method to remove entries from the model. 329 Public method to remove entries from the model.
330 </p><dl> 330 </p><dl>
331 <dt><i>row</i></dt> 331 <dt><i>row</i></dt>
332 <dd> 332 <dd>
343 <dd> 343 <dd>
344 flag indicating successful removal (boolean) 344 flag indicating successful removal (boolean)
345 </dd> 345 </dd>
346 </dl><a NAME="HistoryTreeModel.rowCount" ID="HistoryTreeModel.rowCount"></a> 346 </dl><a NAME="HistoryTreeModel.rowCount" ID="HistoryTreeModel.rowCount"></a>
347 <h4>HistoryTreeModel.rowCount</h4> 347 <h4>HistoryTreeModel.rowCount</h4>
348 <b>rowCount</b>(<i>parent = QModelIndex()</i>) 348 <b>rowCount</b>(<i>parent=QModelIndex()</i>)
349 <p> 349 <p>
350 Public method to determine the number of rows. 350 Public method to determine the number of rows.
351 </p><dl> 351 </p><dl>
352 <dt><i>parent</i></dt> 352 <dt><i>parent</i></dt>
353 <dd> 353 <dd>

eric ide

mercurial