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

changeset 945
8cd4d08fa9f6
parent 440
69ace3e2dcf6
child 1228
7afaf2fca55b
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
82 <td>Public method to determine the number of rows.</td> 82 <td>Public method to determine the number of rows.</td>
83 </tr> 83 </tr>
84 </table> 84 </table>
85 <a NAME="HistoryModel.__init__" ID="HistoryModel.__init__"></a> 85 <a NAME="HistoryModel.__init__" ID="HistoryModel.__init__"></a>
86 <h4>HistoryModel (Constructor)</h4> 86 <h4>HistoryModel (Constructor)</h4>
87 <b>HistoryModel</b>(<i>historyManager, parent = None</i>) 87 <b>HistoryModel</b>(<i>historyManager, parent=None</i>)
88 <p> 88 <p>
89 Constructor 89 Constructor
90 </p><dl> 90 </p><dl>
91 <dt><i>historyManager</i></dt> 91 <dt><i>historyManager</i></dt>
92 <dd> 92 <dd>
95 <dd> 95 <dd>
96 reference to the parent object (QObject) 96 reference to the parent object (QObject)
97 </dd> 97 </dd>
98 </dl><a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a> 98 </dl><a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a>
99 <h4>HistoryModel.columnCount</h4> 99 <h4>HistoryModel.columnCount</h4>
100 <b>columnCount</b>(<i>parent = QModelIndex()</i>) 100 <b>columnCount</b>(<i>parent=QModelIndex()</i>)
101 <p> 101 <p>
102 Public method to get the number of columns. 102 Public method to get the number of columns.
103 </p><dl> 103 </p><dl>
104 <dt><i>parent</i></dt> 104 <dt><i>parent</i></dt>
105 <dd> 105 <dd>
110 <dd> 110 <dd>
111 number of columns (integer) 111 number of columns (integer)
112 </dd> 112 </dd>
113 </dl><a NAME="HistoryModel.data" ID="HistoryModel.data"></a> 113 </dl><a NAME="HistoryModel.data" ID="HistoryModel.data"></a>
114 <h4>HistoryModel.data</h4> 114 <h4>HistoryModel.data</h4>
115 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) 115 <b>data</b>(<i>index, role=Qt.DisplayRole</i>)
116 <p> 116 <p>
117 Public method to get data from the model. 117 Public method to get data from the model.
118 </p><dl> 118 </p><dl>
119 <dt><i>index</i></dt> 119 <dt><i>index</i></dt>
120 <dd> 120 <dd>
143 <dd> 143 <dd>
144 row number of the updated entry (integer) 144 row number of the updated entry (integer)
145 </dd> 145 </dd>
146 </dl><a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a> 146 </dl><a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a>
147 <h4>HistoryModel.headerData</h4> 147 <h4>HistoryModel.headerData</h4>
148 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) 148 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>)
149 <p> 149 <p>
150 Public method to get the header data. 150 Public method to get the header data.
151 </p><dl> 151 </p><dl>
152 <dt><i>section</i></dt> 152 <dt><i>section</i></dt>
153 <dd> 153 <dd>
169 <b>historyReset</b>(<i></i>) 169 <b>historyReset</b>(<i></i>)
170 <p> 170 <p>
171 Public slot to reset the model. 171 Public slot to reset the model.
172 </p><a NAME="HistoryModel.removeRows" ID="HistoryModel.removeRows"></a> 172 </p><a NAME="HistoryModel.removeRows" ID="HistoryModel.removeRows"></a>
173 <h4>HistoryModel.removeRows</h4> 173 <h4>HistoryModel.removeRows</h4>
174 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) 174 <b>removeRows</b>(<i>row, count, parent=QModelIndex()</i>)
175 <p> 175 <p>
176 Public method to remove history entries from the model. 176 Public method to remove history entries from the model.
177 </p><dl> 177 </p><dl>
178 <dt><i>row</i></dt> 178 <dt><i>row</i></dt>
179 <dd> 179 <dd>
190 <dd> 190 <dd>
191 flag indicating successful removal (boolean) 191 flag indicating successful removal (boolean)
192 </dd> 192 </dd>
193 </dl><a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a> 193 </dl><a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a>
194 <h4>HistoryModel.rowCount</h4> 194 <h4>HistoryModel.rowCount</h4>
195 <b>rowCount</b>(<i>parent = QModelIndex()</i>) 195 <b>rowCount</b>(<i>parent=QModelIndex()</i>)
196 <p> 196 <p>
197 Public method to determine the number of rows. 197 Public method to determine the number of rows.
198 </p><dl> 198 </p><dl>
199 <dt><i>parent</i></dt> 199 <dt><i>parent</i></dt>
200 <dd> 200 <dd>

eric ide

mercurial