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

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Helpviewer.History.HistoryFilterModel</h1> 23 <h1>eric5.Helpviewer.History.HistoryFilterModel</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#102;&#105;&#108;&#116;&#101;&#114; &#109;&#111;&#100;&#101;&#108;. 25 Module implementing the history filter model.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#HistoryData">HistoryData</a></td> 34 <td><a href="#HistoryData">HistoryData</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#115;&#116;&#111;&#114;&#105;&#110;&#103; &#115;&#111;&#109;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#100;&#97;&#116;&#97;.</td> 35 <td>Class storing some history data.</td>
36 </tr><tr> 36 </tr><tr>
37 <td><a href="#HistoryFilterModel">HistoryFilterModel</a></td> 37 <td><a href="#HistoryFilterModel">HistoryFilterModel</a></td>
38 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#102;&#105;&#108;&#116;&#101;&#114; &#109;&#111;&#100;&#101;&#108;.</td> 38 <td>Class implementing the history filter model.</td>
39 </tr> 39 </tr>
40 </table> 40 </table>
41 <h3>Functions</h3> 41 <h3>Functions</h3>
42 <table> 42 <table>
43 <tr><td>None</td></tr> 43 <tr><td>None</td></tr>
44 </table> 44 </table>
45 <hr /><hr /> 45 <hr /><hr />
46 <a NAME="HistoryData" ID="HistoryData"></a> 46 <a NAME="HistoryData" ID="HistoryData"></a>
47 <h2>HistoryData</h2> 47 <h2>HistoryData</h2>
48 <p> 48 <p>
49 &#67;&#108;&#97;&#115;&#115; &#115;&#116;&#111;&#114;&#105;&#110;&#103; &#115;&#111;&#109;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#100;&#97;&#116;&#97;. 49 Class storing some history data.
50 </p> 50 </p>
51 <h3>Derived from</h3> 51 <h3>Derived from</h3>
52 object 52 object
53 <h3>Class Attributes</h3> 53 <h3>Class Attributes</h3>
54 <table> 54 <table>
56 </table> 56 </table>
57 <h3>Methods</h3> 57 <h3>Methods</h3>
58 <table> 58 <table>
59 <tr> 59 <tr>
60 <td><a href="#HistoryData.__init__">HistoryData</a></td> 60 <td><a href="#HistoryData.__init__">HistoryData</a></td>
61 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 61 <td>Constructor</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#HistoryData.__eq__">__eq__</a></td> 63 <td><a href="#HistoryData.__eq__">__eq__</a></td>
64 <td>&#83;&#112;&#101;&#99;&#105;&#97;&#108; &#109;&#101;&#116;&#104;&#111;&#100; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#101;&#113;&#117;&#97;&#108;&#105;&#116;y.</td> 64 <td>Special method implementing equality.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#HistoryData.__lt__">__lt__</a></td> 66 <td><a href="#HistoryData.__lt__">__lt__</a></td>
67 <td>&#83;&#112;&#101;&#99;&#105;&#97;&#108; &#109;&#101;&#116;&#104;&#111;&#100; &#100;&#101;&#116;&#101;&#114;&#109;&#105;&#110;&#105;&#110;&#103; &#108;&#101;&#115;&#115; &#114;&#101;&#108;&#97;&#116;&#105;&#111;&#110;.</td> 67 <td>Special method determining less relation.</td>
68 </tr> 68 </tr>
69 </table> 69 </table>
70 <a NAME="HistoryData.__init__" ID="HistoryData.__init__"></a> 70 <a NAME="HistoryData.__init__" ID="HistoryData.__init__"></a>
71 <h4>HistoryData (Constructor)</h4> 71 <h4>HistoryData (Constructor)</h4>
72 <b>HistoryData</b>(<i>offset, frequency = 0</i>) 72 <b>HistoryData</b>(<i>offset, frequency = 0</i>)
73 <p> 73 <p>
74 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 74 Constructor
75 </p><dl> 75 </p><dl>
76 <dt><i>offset</i></dt> 76 <dt><i>offset</i></dt>
77 <dd> 77 <dd>
78 &#116;&#97;&#105;&#108; &#111;&#102;&#102;&#115;&#101;&#116; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 78 tail offset (integer)
79 </dd><dt><i>frequency</i></dt> 79 </dd><dt><i>frequency</i></dt>
80 <dd> 80 <dd>
81 &#102;&#114;&#101;&#113;&#117;&#101;&#110;&#99;y (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 81 frequency (integer)
82 </dd> 82 </dd>
83 </dl><a NAME="HistoryData.__eq__" ID="HistoryData.__eq__"></a> 83 </dl><a NAME="HistoryData.__eq__" ID="HistoryData.__eq__"></a>
84 <h4>HistoryData.__eq__</h4> 84 <h4>HistoryData.__eq__</h4>
85 <b>__eq__</b>(<i>other</i>) 85 <b>__eq__</b>(<i>other</i>)
86 <p> 86 <p>
87 &#83;&#112;&#101;&#99;&#105;&#97;&#108; &#109;&#101;&#116;&#104;&#111;&#100; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#101;&#113;&#117;&#97;&#108;&#105;&#116;y. 87 Special method implementing equality.
88 </p><dl> 88 </p><dl>
89 <dt><i>other</i></dt> 89 <dt><i>other</i></dt>
90 <dd> 90 <dd>
91 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#111;&#98;&#106;&#101;&#99;&#116; &#116;&#111; &#99;&#104;&#101;&#99;&#107; &#97;&#103;&#97;&#105;&#110;&#115;&#116; (&#72;&#105;&#115;&#116;&#111;&#114;y&#68;&#97;&#116;&#97;) 91 reference to the object to check against (HistoryData)
92 </dd> 92 </dd>
93 </dl><dl> 93 </dl><dl>
94 <dt>Returns:</dt> 94 <dt>Returns:</dt>
95 <dd> 95 <dd>
96 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#101;&#113;&#117;&#97;&#108;&#105;&#116;y (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 96 flag indicating equality (boolean)
97 </dd> 97 </dd>
98 </dl><a NAME="HistoryData.__lt__" ID="HistoryData.__lt__"></a> 98 </dl><a NAME="HistoryData.__lt__" ID="HistoryData.__lt__"></a>
99 <h4>HistoryData.__lt__</h4> 99 <h4>HistoryData.__lt__</h4>
100 <b>__lt__</b>(<i>other</i>) 100 <b>__lt__</b>(<i>other</i>)
101 <p> 101 <p>
102 &#83;&#112;&#101;&#99;&#105;&#97;&#108; &#109;&#101;&#116;&#104;&#111;&#100; &#100;&#101;&#116;&#101;&#114;&#109;&#105;&#110;&#105;&#110;&#103; &#108;&#101;&#115;&#115; &#114;&#101;&#108;&#97;&#116;&#105;&#111;&#110;. 102 Special method determining less relation.
103 </p><p> 103 </p><p>
104 &#78;&#111;&#116;&#101;&#58; &#76;&#105;&#107;&#101; &#116;&#104;&#101; &#97;&#99;&#116;&#117;&#97;&#108; &#104;&#105;&#115;&#116;&#111;&#114;y &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#109;&#97;&#112;&#112;&#105;&#110;&#103; &#105;&#115; &#115;&#111;&#114;&#116;&#101;&#100; &#105;&#110; &#114;&#101;v&#101;&#114;&#115;&#101; 104 Note: Like the actual history entries the index mapping is sorted in reverse
105 &#111;&#114;&#100;&#101;&#114; &#98;y &#111;&#102;&#102;&#115;&#101;&#116; 105 order by offset
106 </p><dl> 106 </p><dl>
107 <dt><i>other</i></dt> 107 <dt><i>other</i></dt>
108 <dd> 108 <dd>
109 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#100;&#97;&#116;&#97; &#111;&#98;&#106;&#101;&#99;&#116; &#116;&#111; &#99;&#111;&#109;&#112;&#97;&#114;&#101; &#97;&#103;&#97;&#105;&#110;&#115;&#116; 109 reference to the history data object to compare against
110 (&#72;&#105;&#115;&#116;&#111;&#114;y&#69;&#110;&#116;&#114;y) 110 (HistoryEntry)
111 </dd> 111 </dd>
112 </dl><dl> 112 </dl><dl>
113 <dt>Returns:</dt> 113 <dt>Returns:</dt>
114 <dd> 114 <dd>
115 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#108;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 115 flag indicating less (boolean)
116 </dd> 116 </dd>
117 </dl> 117 </dl>
118 <div align="right"><a href="#top">Up</a></div> 118 <div align="right"><a href="#top">Up</a></div>
119 <hr /><hr /> 119 <hr /><hr />
120 <a NAME="HistoryFilterModel" ID="HistoryFilterModel"></a> 120 <a NAME="HistoryFilterModel" ID="HistoryFilterModel"></a>
121 <h2>HistoryFilterModel</h2> 121 <h2>HistoryFilterModel</h2>
122 <p> 122 <p>
123 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#102;&#105;&#108;&#116;&#101;&#114; &#109;&#111;&#100;&#101;&#108;. 123 Class implementing the history filter model.
124 </p> 124 </p>
125 <h3>Derived from</h3> 125 <h3>Derived from</h3>
126 QAbstractProxyModel 126 QAbstractProxyModel
127 <h3>Class Attributes</h3> 127 <h3>Class Attributes</h3>
128 <table> 128 <table>
130 </table> 130 </table>
131 <h3>Methods</h3> 131 <h3>Methods</h3>
132 <table> 132 <table>
133 <tr> 133 <tr>
134 <td><a href="#HistoryFilterModel.__init__">HistoryFilterModel</a></td> 134 <td><a href="#HistoryFilterModel.__init__">HistoryFilterModel</a></td>
135 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 135 <td>Constructor</td>
136 </tr><tr> 136 </tr><tr>
137 <td><a href="#HistoryFilterModel.__frequencyScore">__frequencyScore</a></td> 137 <td><a href="#HistoryFilterModel.__frequencyScore">__frequencyScore</a></td>
138 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#102;&#114;&#101;&#113;&#117;&#101;&#110;&#99;y &#115;&#99;&#111;&#114;&#101;.</td> 138 <td>Private method to calculate the frequency score.</td>
139 </tr><tr> 139 </tr><tr>
140 <td><a href="#HistoryFilterModel.__load">__load</a></td> 140 <td><a href="#HistoryFilterModel.__load">__load</a></td>
141 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#108;&#111;&#97;&#100; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108; &#100;&#97;&#116;&#97;.</td> 141 <td>Private method to load the model data.</td>
142 </tr><tr> 142 </tr><tr>
143 <td><a href="#HistoryFilterModel.__sourceDataChanged">__sourceDataChanged</a></td> 143 <td><a href="#HistoryFilterModel.__sourceDataChanged">__sourceDataChanged</a></td>
144 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101; &#111;&#102; &#100;&#97;&#116;&#97; &#111;&#102; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 144 <td>Private slot to handle the change of data of the source model.</td>
145 </tr><tr> 145 </tr><tr>
146 <td><a href="#HistoryFilterModel.__sourceReset">__sourceReset</a></td> 146 <td><a href="#HistoryFilterModel.__sourceReset">__sourceReset</a></td>
147 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#114;&#101;&#115;&#101;&#116; &#111;&#102; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 147 <td>Private slot to handle a reset of the source model.</td>
148 </tr><tr> 148 </tr><tr>
149 <td><a href="#HistoryFilterModel.__sourceRowsInserted">__sourceRowsInserted</a></td> 149 <td><a href="#HistoryFilterModel.__sourceRowsInserted">__sourceRowsInserted</a></td>
150 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#105;&#110;&#115;&#101;&#114;&#116;&#105;&#111;&#110; &#111;&#102; &#100;&#97;&#116;&#97; &#105;&#110; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 150 <td>Private slot to handle the insertion of data in the source model.</td>
151 </tr><tr> 151 </tr><tr>
152 <td><a href="#HistoryFilterModel.__sourceRowsRemoved">__sourceRowsRemoved</a></td> 152 <td><a href="#HistoryFilterModel.__sourceRowsRemoved">__sourceRowsRemoved</a></td>
153 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#114;&#101;&#109;&#111;v&#97;&#108; &#111;&#102; &#100;&#97;&#116;&#97; &#105;&#110; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 153 <td>Private slot to handle the removal of data in the source model.</td>
154 </tr><tr> 154 </tr><tr>
155 <td><a href="#HistoryFilterModel.columnCount">columnCount</a></td> 155 <td><a href="#HistoryFilterModel.columnCount">columnCount</a></td>
156 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115;.</td> 156 <td>Public method to get the number of columns.</td>
157 </tr><tr> 157 </tr><tr>
158 <td><a href="#HistoryFilterModel.data">data</a></td> 158 <td><a href="#HistoryFilterModel.data">data</a></td>
159 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 159 <td>Public method to get data from the model.</td>
160 </tr><tr> 160 </tr><tr>
161 <td><a href="#HistoryFilterModel.headerData">headerData</a></td> 161 <td><a href="#HistoryFilterModel.headerData">headerData</a></td>
162 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97;.</td> 162 <td>Public method to get the header data.</td>
163 </tr><tr> 163 </tr><tr>
164 <td><a href="#HistoryFilterModel.historyContains">historyContains</a></td> 164 <td><a href="#HistoryFilterModel.historyContains">historyContains</a></td>
165 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107; &#116;&#104;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#102;&#111;&#114; &#97;&#110; &#101;&#110;&#116;&#114;y.</td> 165 <td>Public method to check the history for an entry.</td>
166 </tr><tr> 166 </tr><tr>
167 <td><a href="#HistoryFilterModel.historyLocation">historyLocation</a></td> 167 <td><a href="#HistoryFilterModel.historyLocation">historyLocation</a></td>
168 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;w &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#97;&#110; &#101;&#110;&#116;&#114;y &#105;&#110; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 168 <td>Public method to get the row number of an entry in the source model.</td>
169 </tr><tr> 169 </tr><tr>
170 <td><a href="#HistoryFilterModel.index">index</a></td> 170 <td><a href="#HistoryFilterModel.index">index</a></td>
171 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#105;&#110;&#100;&#101;x.</td> 171 <td>Public method to create an index.</td>
172 </tr><tr> 172 </tr><tr>
173 <td><a href="#HistoryFilterModel.mapFromSource">mapFromSource</a></td> 173 <td><a href="#HistoryFilterModel.mapFromSource">mapFromSource</a></td>
174 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#97;&#112; &#97;&#110; &#105;&#110;&#100;&#101;x &#116;&#111; &#116;&#104;&#101; &#112;&#114;&#111;xy &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x.</td> 174 <td>Public method to map an index to the proxy model index.</td>
175 </tr><tr> 175 </tr><tr>
176 <td><a href="#HistoryFilterModel.mapToSource">mapToSource</a></td> 176 <td><a href="#HistoryFilterModel.mapToSource">mapToSource</a></td>
177 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#97;&#112; &#97;&#110; &#105;&#110;&#100;&#101;x &#116;&#111; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x.</td> 177 <td>Public method to map an index to the source model index.</td>
178 </tr><tr> 178 </tr><tr>
179 <td><a href="#HistoryFilterModel.parent">parent</a></td> 179 <td><a href="#HistoryFilterModel.parent">parent</a></td>
180 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#100;&#101;x.</td> 180 <td>Public method to get the parent index.</td>
181 </tr><tr> 181 </tr><tr>
182 <td><a href="#HistoryFilterModel.recalculateFrequencies">recalculateFrequencies</a></td> 182 <td><a href="#HistoryFilterModel.recalculateFrequencies">recalculateFrequencies</a></td>
183 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#102;&#114;&#101;&#113;&#117;&#101;&#110;&#99;&#105;&#101;&#115;.</td> 183 <td>Public method to recalculate the frequencies.</td>
184 </tr><tr> 184 </tr><tr>
185 <td><a href="#HistoryFilterModel.removeRows">removeRows</a></td> 185 <td><a href="#HistoryFilterModel.removeRows">removeRows</a></td>
186 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 186 <td>Public method to remove entries from the model.</td>
187 </tr><tr> 187 </tr><tr>
188 <td><a href="#HistoryFilterModel.rowCount">rowCount</a></td> 188 <td><a href="#HistoryFilterModel.rowCount">rowCount</a></td>
189 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#101;&#116;&#101;&#114;&#109;&#105;&#110;&#101; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115;.</td> 189 <td>Public method to determine the number of rows.</td>
190 </tr><tr> 190 </tr><tr>
191 <td><a href="#HistoryFilterModel.setSourceModel">setSourceModel</a></td> 191 <td><a href="#HistoryFilterModel.setSourceModel">setSourceModel</a></td>
192 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 192 <td>Public method to set the source model.</td>
193 </tr> 193 </tr>
194 </table> 194 </table>
195 <a NAME="HistoryFilterModel.__init__" ID="HistoryFilterModel.__init__"></a> 195 <a NAME="HistoryFilterModel.__init__" ID="HistoryFilterModel.__init__"></a>
196 <h4>HistoryFilterModel (Constructor)</h4> 196 <h4>HistoryFilterModel (Constructor)</h4>
197 <b>HistoryFilterModel</b>(<i>sourceModel, parent = None</i>) 197 <b>HistoryFilterModel</b>(<i>sourceModel, parent = None</i>)
198 <p> 198 <p>
199 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 199 Constructor
200 </p><dl> 200 </p><dl>
201 <dt><i>sourceModel</i></dt> 201 <dt><i>sourceModel</i></dt>
202 <dd> 202 <dd>
203 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; (&#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#73;&#116;&#101;&#109;&#77;&#111;&#100;&#101;&#108;) 203 reference to the source model (QAbstractItemModel)
204 </dd><dt><i>parent</i></dt> 204 </dd><dt><i>parent</i></dt>
205 <dd> 205 <dd>
206 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;) 206 reference to the parent object (QObject)
207 </dd> 207 </dd>
208 </dl><a NAME="HistoryFilterModel.__frequencyScore" ID="HistoryFilterModel.__frequencyScore"></a> 208 </dl><a NAME="HistoryFilterModel.__frequencyScore" ID="HistoryFilterModel.__frequencyScore"></a>
209 <h4>HistoryFilterModel.__frequencyScore</h4> 209 <h4>HistoryFilterModel.__frequencyScore</h4>
210 <b>__frequencyScore</b>(<i>sourceIndex</i>) 210 <b>__frequencyScore</b>(<i>sourceIndex</i>)
211 <p> 211 <p>
212 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#102;&#114;&#101;&#113;&#117;&#101;&#110;&#99;y &#115;&#99;&#111;&#114;&#101;. 212 Private method to calculate the frequency score.
213 </p><dl> 213 </p><dl>
214 <dt><i>sourceIndex</i></dt> 214 <dt><i>sourceIndex</i></dt>
215 <dd> 215 <dd>
216 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 216 index of the source model (QModelIndex)
217 </dd> 217 </dd>
218 </dl><dl> 218 </dl><dl>
219 <dt>Returns:</dt> 219 <dt>Returns:</dt>
220 <dd> 220 <dd>
221 &#102;&#114;&#101;&#113;&#117;&#101;&#110;&#99;y &#115;&#99;&#111;&#114;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 221 frequency score (integer)
222 </dd> 222 </dd>
223 </dl><a NAME="HistoryFilterModel.__load" ID="HistoryFilterModel.__load"></a> 223 </dl><a NAME="HistoryFilterModel.__load" ID="HistoryFilterModel.__load"></a>
224 <h4>HistoryFilterModel.__load</h4> 224 <h4>HistoryFilterModel.__load</h4>
225 <b>__load</b>(<i></i>) 225 <b>__load</b>(<i></i>)
226 <p> 226 <p>
227 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#108;&#111;&#97;&#100; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108; &#100;&#97;&#116;&#97;. 227 Private method to load the model data.
228 </p><a NAME="HistoryFilterModel.__sourceDataChanged" ID="HistoryFilterModel.__sourceDataChanged"></a> 228 </p><a NAME="HistoryFilterModel.__sourceDataChanged" ID="HistoryFilterModel.__sourceDataChanged"></a>
229 <h4>HistoryFilterModel.__sourceDataChanged</h4> 229 <h4>HistoryFilterModel.__sourceDataChanged</h4>
230 <b>__sourceDataChanged</b>(<i>topLeft, bottomRight</i>) 230 <b>__sourceDataChanged</b>(<i>topLeft, bottomRight</i>)
231 <p> 231 <p>
232 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101; &#111;&#102; &#100;&#97;&#116;&#97; &#111;&#102; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;. 232 Private slot to handle the change of data of the source model.
233 </p><dl> 233 </p><dl>
234 <dt><i>topLeft</i></dt> 234 <dt><i>topLeft</i></dt>
235 <dd> 235 <dd>
236 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#111;&#112; &#108;&#101;&#102;&#116; &#100;&#97;&#116;&#97; &#101;&#108;&#101;&#109;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 236 index of top left data element (QModelIndex)
237 </dd><dt><i>bottomRight</i></dt> 237 </dd><dt><i>bottomRight</i></dt>
238 <dd> 238 <dd>
239 &#105;&#110;&#100;&#101;x &#111;&#102; &#98;&#111;&#116;&#116;&#111;&#109; &#114;&#105;&#103;&#104;&#116; &#100;&#97;&#116;&#97; &#101;&#108;&#101;&#109;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 239 index of bottom right data element (QModelIndex)
240 </dd> 240 </dd>
241 </dl><a NAME="HistoryFilterModel.__sourceReset" ID="HistoryFilterModel.__sourceReset"></a> 241 </dl><a NAME="HistoryFilterModel.__sourceReset" ID="HistoryFilterModel.__sourceReset"></a>
242 <h4>HistoryFilterModel.__sourceReset</h4> 242 <h4>HistoryFilterModel.__sourceReset</h4>
243 <b>__sourceReset</b>(<i></i>) 243 <b>__sourceReset</b>(<i></i>)
244 <p> 244 <p>
245 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#114;&#101;&#115;&#101;&#116; &#111;&#102; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;. 245 Private slot to handle a reset of the source model.
246 </p><a NAME="HistoryFilterModel.__sourceRowsInserted" ID="HistoryFilterModel.__sourceRowsInserted"></a> 246 </p><a NAME="HistoryFilterModel.__sourceRowsInserted" ID="HistoryFilterModel.__sourceRowsInserted"></a>
247 <h4>HistoryFilterModel.__sourceRowsInserted</h4> 247 <h4>HistoryFilterModel.__sourceRowsInserted</h4>
248 <b>__sourceRowsInserted</b>(<i>parent, start, end</i>) 248 <b>__sourceRowsInserted</b>(<i>parent, start, end</i>)
249 <p> 249 <p>
250 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#105;&#110;&#115;&#101;&#114;&#116;&#105;&#111;&#110; &#111;&#102; &#100;&#97;&#116;&#97; &#105;&#110; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;. 250 Private slot to handle the insertion of data in the source model.
251 </p><dl> 251 </p><dl>
252 <dt><i>parent</i></dt> 252 <dt><i>parent</i></dt>
253 <dd> 253 <dd>
254 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 254 reference to the parent index (QModelIndex)
255 </dd><dt><i>start</i></dt> 255 </dd><dt><i>start</i></dt>
256 <dd> 256 <dd>
257 &#115;&#116;&#97;&#114;&#116; &#114;&#111;w (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 257 start row (integer)
258 </dd><dt><i>end</i></dt> 258 </dd><dt><i>end</i></dt>
259 <dd> 259 <dd>
260 &#101;&#110;&#100; &#114;&#111;w (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 260 end row (integer)
261 </dd> 261 </dd>
262 </dl><a NAME="HistoryFilterModel.__sourceRowsRemoved" ID="HistoryFilterModel.__sourceRowsRemoved"></a> 262 </dl><a NAME="HistoryFilterModel.__sourceRowsRemoved" ID="HistoryFilterModel.__sourceRowsRemoved"></a>
263 <h4>HistoryFilterModel.__sourceRowsRemoved</h4> 263 <h4>HistoryFilterModel.__sourceRowsRemoved</h4>
264 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>) 264 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>)
265 <p> 265 <p>
266 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#114;&#101;&#109;&#111;v&#97;&#108; &#111;&#102; &#100;&#97;&#116;&#97; &#105;&#110; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;. 266 Private slot to handle the removal of data in the source model.
267 </p><dl> 267 </p><dl>
268 <dt><i>parent</i></dt> 268 <dt><i>parent</i></dt>
269 <dd> 269 <dd>
270 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 270 reference to the parent index (QModelIndex)
271 </dd><dt><i>start</i></dt> 271 </dd><dt><i>start</i></dt>
272 <dd> 272 <dd>
273 &#115;&#116;&#97;&#114;&#116; &#114;&#111;w (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 273 start row (integer)
274 </dd><dt><i>end</i></dt> 274 </dd><dt><i>end</i></dt>
275 <dd> 275 <dd>
276 &#101;&#110;&#100; &#114;&#111;w (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 276 end row (integer)
277 </dd> 277 </dd>
278 </dl><a NAME="HistoryFilterModel.columnCount" ID="HistoryFilterModel.columnCount"></a> 278 </dl><a NAME="HistoryFilterModel.columnCount" ID="HistoryFilterModel.columnCount"></a>
279 <h4>HistoryFilterModel.columnCount</h4> 279 <h4>HistoryFilterModel.columnCount</h4>
280 <b>columnCount</b>(<i>parent = QModelIndex()</i>) 280 <b>columnCount</b>(<i>parent = QModelIndex()</i>)
281 <p> 281 <p>
282 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115;. 282 Public method to get the number of columns.
283 </p><dl> 283 </p><dl>
284 <dt><i>parent</i></dt> 284 <dt><i>parent</i></dt>
285 <dd> 285 <dd>
286 &#105;&#110;&#100;&#101;x &#111;&#102; &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 286 index of parent (QModelIndex)
287 </dd> 287 </dd>
288 </dl><dl> 288 </dl><dl>
289 <dt>Returns:</dt> 289 <dt>Returns:</dt>
290 <dd> 290 <dd>
291 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 291 number of columns (integer)
292 </dd> 292 </dd>
293 </dl><a NAME="HistoryFilterModel.data" ID="HistoryFilterModel.data"></a> 293 </dl><a NAME="HistoryFilterModel.data" ID="HistoryFilterModel.data"></a>
294 <h4>HistoryFilterModel.data</h4> 294 <h4>HistoryFilterModel.data</h4>
295 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) 295 <b>data</b>(<i>index, role = Qt.DisplayRole</i>)
296 <p> 296 <p>
297 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 297 Public method to get data from the model.
298 </p><dl> 298 </p><dl>
299 <dt><i>index</i></dt> 299 <dt><i>index</i></dt>
300 <dd> 300 <dd>
301 &#105;&#110;&#100;&#101;x &#111;&#102; &#104;&#105;&#115;&#116;&#111;&#114;y &#101;&#110;&#116;&#114;y &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#111;&#114; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 301 index of history entry to get data for (QModelIndex)
302 </dd><dt><i>role</i></dt> 302 </dd><dt><i>role</i></dt>
303 <dd> 303 <dd>
304 &#100;&#97;&#116;&#97; &#114;&#111;&#108;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 304 data role (integer)
305 </dd> 305 </dd>
306 </dl><dl> 306 </dl><dl>
307 <dt>Returns:</dt> 307 <dt>Returns:</dt>
308 <dd> 308 <dd>
309 &#104;&#105;&#115;&#116;&#111;&#114;y &#101;&#110;&#116;&#114;y &#100;&#97;&#116;&#97; 309 history entry data
310 </dd> 310 </dd>
311 </dl><a NAME="HistoryFilterModel.headerData" ID="HistoryFilterModel.headerData"></a> 311 </dl><a NAME="HistoryFilterModel.headerData" ID="HistoryFilterModel.headerData"></a>
312 <h4>HistoryFilterModel.headerData</h4> 312 <h4>HistoryFilterModel.headerData</h4>
313 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) 313 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>)
314 <p> 314 <p>
315 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97;. 315 Public method to get the header data.
316 </p><dl> 316 </p><dl>
317 <dt><i>section</i></dt> 317 <dt><i>section</i></dt>
318 <dd> 318 <dd>
319 &#115;&#101;&#99;&#116;&#105;&#111;&#110; &#110;&#117;&#109;&#98;&#101;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 319 section number (integer)
320 </dd><dt><i>orientation</i></dt> 320 </dd><dt><i>orientation</i></dt>
321 <dd> 321 <dd>
322 &#104;&#101;&#97;&#100;&#101;&#114; &#111;&#114;&#105;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; (&#81;&#116;.&#79;&#114;&#105;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;) 322 header orientation (Qt.Orientation)
323 </dd><dt><i>role</i></dt> 323 </dd><dt><i>role</i></dt>
324 <dd> 324 <dd>
325 &#100;&#97;&#116;&#97; &#114;&#111;&#108;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 325 data role (integer)
326 </dd> 326 </dd>
327 </dl><dl> 327 </dl><dl>
328 <dt>Returns:</dt> 328 <dt>Returns:</dt>
329 <dd> 329 <dd>
330 &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97; 330 header data
331 </dd> 331 </dd>
332 </dl><a NAME="HistoryFilterModel.historyContains" ID="HistoryFilterModel.historyContains"></a> 332 </dl><a NAME="HistoryFilterModel.historyContains" ID="HistoryFilterModel.historyContains"></a>
333 <h4>HistoryFilterModel.historyContains</h4> 333 <h4>HistoryFilterModel.historyContains</h4>
334 <b>historyContains</b>(<i>url</i>) 334 <b>historyContains</b>(<i>url</i>)
335 <p> 335 <p>
336 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107; &#116;&#104;&#101; &#104;&#105;&#115;&#116;&#111;&#114;y &#102;&#111;&#114; &#97;&#110; &#101;&#110;&#116;&#114;y. 336 Public method to check the history for an entry.
337 </p><dl> 337 </p><dl>
338 <dt><i>url</i></dt> 338 <dt><i>url</i></dt>
339 <dd> 339 <dd>
340 &#85;&#82;&#76; &#116;&#111; &#99;&#104;&#101;&#99;&#107; &#102;&#111;&#114; (&#115;&#116;&#114;&#105;&#110;&#103;) 340 URL to check for (string)
341 </dd> 341 </dd>
342 </dl><dl> 342 </dl><dl>
343 <dt>Returns:</dt> 343 <dt>Returns:</dt>
344 <dd> 344 <dd>
345 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 345 flag indicating success (boolean)
346 </dd> 346 </dd>
347 </dl><a NAME="HistoryFilterModel.historyLocation" ID="HistoryFilterModel.historyLocation"></a> 347 </dl><a NAME="HistoryFilterModel.historyLocation" ID="HistoryFilterModel.historyLocation"></a>
348 <h4>HistoryFilterModel.historyLocation</h4> 348 <h4>HistoryFilterModel.historyLocation</h4>
349 <b>historyLocation</b>(<i>url</i>) 349 <b>historyLocation</b>(<i>url</i>)
350 <p> 350 <p>
351 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;w &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#97;&#110; &#101;&#110;&#116;&#114;y &#105;&#110; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;. 351 Public method to get the row number of an entry in the source model.
352 </p><dl> 352 </p><dl>
353 <dt><i>url</i></dt> 353 <dt><i>url</i></dt>
354 <dd> 354 <dd>
355 &#85;&#82;&#76; &#116;&#111; &#99;&#104;&#101;&#99;&#107; &#102;&#111;&#114; (&#116;&#114;&#105;&#110;&#103;) 355 URL to check for (tring)
356 </dd> 356 </dd>
357 </dl><dl> 357 </dl><dl>
358 <dt>Returns:</dt> 358 <dt>Returns:</dt>
359 <dd> 359 <dd>
360 &#114;&#111;w &#110;&#117;&#109;&#98;&#101;&#114; &#105;&#110; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 360 row number in the source model (integer)
361 </dd> 361 </dd>
362 </dl><a NAME="HistoryFilterModel.index" ID="HistoryFilterModel.index"></a> 362 </dl><a NAME="HistoryFilterModel.index" ID="HistoryFilterModel.index"></a>
363 <h4>HistoryFilterModel.index</h4> 363 <h4>HistoryFilterModel.index</h4>
364 <b>index</b>(<i>row, column, parent = QModelIndex()</i>) 364 <b>index</b>(<i>row, column, parent = QModelIndex()</i>)
365 <p> 365 <p>
366 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#105;&#110;&#100;&#101;x. 366 Public method to create an index.
367 </p><dl> 367 </p><dl>
368 <dt><i>row</i></dt> 368 <dt><i>row</i></dt>
369 <dd> 369 <dd>
370 &#114;&#111;w &#110;&#117;&#109;&#98;&#101;&#114; &#102;&#111;&#114; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 370 row number for the index (integer)
371 </dd><dt><i>column</i></dt> 371 </dd><dt><i>column</i></dt>
372 <dd> 372 <dd>
373 &#99;&#111;&#108;&#117;&#109;&#110; &#110;&#117;&#109;&#98;&#101;&#114; &#102;&#111;&#114; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 373 column number for the index (integer)
374 </dd><dt><i>parent</i></dt> 374 </dd><dt><i>parent</i></dt>
375 <dd> 375 <dd>
376 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#116;&#101;&#109; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 376 index of the parent item (QModelIndex)
377 </dd> 377 </dd>
378 </dl><dl> 378 </dl><dl>
379 <dt>Returns:</dt> 379 <dt>Returns:</dt>
380 <dd> 380 <dd>
381 &#114;&#101;&#113;&#117;&#101;&#115;&#116;&#101;&#100; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 381 requested index (QModelIndex)
382 </dd> 382 </dd>
383 </dl><a NAME="HistoryFilterModel.mapFromSource" ID="HistoryFilterModel.mapFromSource"></a> 383 </dl><a NAME="HistoryFilterModel.mapFromSource" ID="HistoryFilterModel.mapFromSource"></a>
384 <h4>HistoryFilterModel.mapFromSource</h4> 384 <h4>HistoryFilterModel.mapFromSource</h4>
385 <b>mapFromSource</b>(<i>sourceIndex</i>) 385 <b>mapFromSource</b>(<i>sourceIndex</i>)
386 <p> 386 <p>
387 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#97;&#112; &#97;&#110; &#105;&#110;&#100;&#101;x &#116;&#111; &#116;&#104;&#101; &#112;&#114;&#111;xy &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x. 387 Public method to map an index to the proxy model index.
388 </p><dl> 388 </p><dl>
389 <dt><i>sourceIndex</i></dt> 389 <dt><i>sourceIndex</i></dt>
390 <dd> 390 <dd>
391 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#97; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 391 reference to a source model index (QModelIndex)
392 </dd> 392 </dd>
393 </dl><dl> 393 </dl><dl>
394 <dt>Returns:</dt> 394 <dt>Returns:</dt>
395 <dd> 395 <dd>
396 &#112;&#114;&#111;xy &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 396 proxy model index (QModelIndex)
397 </dd> 397 </dd>
398 </dl><a NAME="HistoryFilterModel.mapToSource" ID="HistoryFilterModel.mapToSource"></a> 398 </dl><a NAME="HistoryFilterModel.mapToSource" ID="HistoryFilterModel.mapToSource"></a>
399 <h4>HistoryFilterModel.mapToSource</h4> 399 <h4>HistoryFilterModel.mapToSource</h4>
400 <b>mapToSource</b>(<i>proxyIndex</i>) 400 <b>mapToSource</b>(<i>proxyIndex</i>)
401 <p> 401 <p>
402 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#97;&#112; &#97;&#110; &#105;&#110;&#100;&#101;x &#116;&#111; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x. 402 Public method to map an index to the source model index.
403 </p><dl> 403 </p><dl>
404 <dt><i>proxyIndex</i></dt> 404 <dt><i>proxyIndex</i></dt>
405 <dd> 405 <dd>
406 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#97; &#112;&#114;&#111;xy &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 406 reference to a proxy model index (QModelIndex)
407 </dd> 407 </dd>
408 </dl><dl> 408 </dl><dl>
409 <dt>Returns:</dt> 409 <dt>Returns:</dt>
410 <dd> 410 <dd>
411 &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 411 source model index (QModelIndex)
412 </dd> 412 </dd>
413 </dl><a NAME="HistoryFilterModel.parent" ID="HistoryFilterModel.parent"></a> 413 </dl><a NAME="HistoryFilterModel.parent" ID="HistoryFilterModel.parent"></a>
414 <h4>HistoryFilterModel.parent</h4> 414 <h4>HistoryFilterModel.parent</h4>
415 <b>parent</b>(<i>index</i>) 415 <b>parent</b>(<i>index</i>)
416 <p> 416 <p>
417 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#100;&#101;x. 417 Public method to get the parent index.
418 </p><dl> 418 </p><dl>
419 <dt><i>index</i></dt> 419 <dt><i>index</i></dt>
420 <dd> 420 <dd>
421 &#105;&#110;&#100;&#101;x &#111;&#102; &#105;&#116;&#101;&#109; &#116;&#111; &#103;&#101;&#116; &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 421 index of item to get parent (QModelIndex)
422 </dd> 422 </dd>
423 </dl><dl> 423 </dl><dl>
424 <dt>Returns:</dt> 424 <dt>Returns:</dt>
425 <dd> 425 <dd>
426 &#105;&#110;&#100;&#101;x &#111;&#102; &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 426 index of parent (QModelIndex)
427 </dd> 427 </dd>
428 </dl><a NAME="HistoryFilterModel.recalculateFrequencies" ID="HistoryFilterModel.recalculateFrequencies"></a> 428 </dl><a NAME="HistoryFilterModel.recalculateFrequencies" ID="HistoryFilterModel.recalculateFrequencies"></a>
429 <h4>HistoryFilterModel.recalculateFrequencies</h4> 429 <h4>HistoryFilterModel.recalculateFrequencies</h4>
430 <b>recalculateFrequencies</b>(<i></i>) 430 <b>recalculateFrequencies</b>(<i></i>)
431 <p> 431 <p>
432 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#102;&#114;&#101;&#113;&#117;&#101;&#110;&#99;&#105;&#101;&#115;. 432 Public method to recalculate the frequencies.
433 </p><a NAME="HistoryFilterModel.removeRows" ID="HistoryFilterModel.removeRows"></a> 433 </p><a NAME="HistoryFilterModel.removeRows" ID="HistoryFilterModel.removeRows"></a>
434 <h4>HistoryFilterModel.removeRows</h4> 434 <h4>HistoryFilterModel.removeRows</h4>
435 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) 435 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>)
436 <p> 436 <p>
437 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 437 Public method to remove entries from the model.
438 </p><dl> 438 </p><dl>
439 <dt><i>row</i></dt> 439 <dt><i>row</i></dt>
440 <dd> 440 <dd>
441 &#114;&#111;w &#111;&#102; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#101;&#110;&#116;&#114;y &#116;&#111; &#114;&#101;&#109;&#111;v&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 441 row of the first entry to remove (integer)
442 </dd><dt><i>count</i></dt> 442 </dd><dt><i>count</i></dt>
443 <dd> 443 <dd>
444 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 444 number of entries to remove (integer)
445 </dd><dt><i>index</i></dt> 445 </dd><dt><i>index</i></dt>
446 <dd> 446 <dd>
447 &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#101;&#110;&#116;&#114;y (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 447 of the parent entry (QModelIndex)
448 </dd> 448 </dd>
449 </dl><dl> 449 </dl><dl>
450 <dt>Returns:</dt> 450 <dt>Returns:</dt>
451 <dd> 451 <dd>
452 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115;&#102;&#117;&#108; &#114;&#101;&#109;&#111;v&#97;&#108; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 452 flag indicating successful removal (boolean)
453 </dd> 453 </dd>
454 </dl><a NAME="HistoryFilterModel.rowCount" ID="HistoryFilterModel.rowCount"></a> 454 </dl><a NAME="HistoryFilterModel.rowCount" ID="HistoryFilterModel.rowCount"></a>
455 <h4>HistoryFilterModel.rowCount</h4> 455 <h4>HistoryFilterModel.rowCount</h4>
456 <b>rowCount</b>(<i>parent = QModelIndex()</i>) 456 <b>rowCount</b>(<i>parent = QModelIndex()</i>)
457 <p> 457 <p>
458 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#101;&#116;&#101;&#114;&#109;&#105;&#110;&#101; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115;. 458 Public method to determine the number of rows.
459 </p><dl> 459 </p><dl>
460 <dt><i>parent</i></dt> 460 <dt><i>parent</i></dt>
461 <dd> 461 <dd>
462 &#105;&#110;&#100;&#101;x &#111;&#102; &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 462 index of parent (QModelIndex)
463 </dd> 463 </dd>
464 </dl><dl> 464 </dl><dl>
465 <dt>Returns:</dt> 465 <dt>Returns:</dt>
466 <dd> 466 <dd>
467 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 467 number of rows (integer)
468 </dd> 468 </dd>
469 </dl><a NAME="HistoryFilterModel.setSourceModel" ID="HistoryFilterModel.setSourceModel"></a> 469 </dl><a NAME="HistoryFilterModel.setSourceModel" ID="HistoryFilterModel.setSourceModel"></a>
470 <h4>HistoryFilterModel.setSourceModel</h4> 470 <h4>HistoryFilterModel.setSourceModel</h4>
471 <b>setSourceModel</b>(<i>sourceModel</i>) 471 <b>setSourceModel</b>(<i>sourceModel</i>)
472 <p> 472 <p>
473 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108;. 473 Public method to set the source model.
474 </p><dl> 474 </p><dl>
475 <dt><i>sourceModel</i></dt> 475 <dt><i>sourceModel</i></dt>
476 <dd> 476 <dd>
477 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#109;&#111;&#100;&#101;&#108; (&#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#73;&#116;&#101;&#109;&#77;&#111;&#100;&#101;&#108;) 477 reference to the source model (QAbstractItemModel)
478 </dd> 478 </dd>
479 </dl> 479 </dl>
480 <div align="right"><a href="#top">Up</a></div> 480 <div align="right"><a href="#top">Up</a></div>
481 <hr /> 481 <hr />
482 </body></html> 482 </body></html>

eric ide

mercurial