src/eric7/Documentation/Source/eric7.WebBrowser.Download.DownloadModel.html

branch
eric7
changeset 10479
856476537696
parent 10417
c6011e501282
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.WebBrowser.Download.DownloadModel</h1> 9 <h1>eric7.WebBrowser.Download.DownloadModel</h1>
10
11 <p> 10 <p>
12 Module implementing the download model. 11 Module implementing the download model.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>None</td></tr>
17 <tr><td>None</td></tr> 17 </table>
18 </table> 18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#DownloadModel">DownloadModel</a></td> 22 <td><a href="#DownloadModel">DownloadModel</a></td>
25 <td>Class implementing the download model.</td> 23 <td>Class implementing the download model.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29 28 <table>
30 <table> 29 <tr><td>None</td></tr>
31 <tr><td>None</td></tr> 30 </table>
32 </table> 31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="DownloadModel" ID="DownloadModel"></a> 34 <a NAME="DownloadModel" ID="DownloadModel"></a>
36 <h2>DownloadModel</h2> 35 <h2>DownloadModel</h2>
37
38 <p> 36 <p>
39 Class implementing the download model. 37 Class implementing the download model.
40 </p> 38 </p>
39
41 <h3>Derived from</h3> 40 <h3>Derived from</h3>
42 QAbstractListModel 41 QAbstractListModel
43 <h3>Class Attributes</h3> 42 <h3>Class Attributes</h3>
44 43 <table>
45 <table> 44 <tr><td>None</td></tr>
46 <tr><td>None</td></tr> 45 </table>
47 </table> 46
48 <h3>Class Methods</h3> 47 <h3>Class Methods</h3>
49 48 <table>
50 <table> 49 <tr><td>None</td></tr>
51 <tr><td>None</td></tr> 50 </table>
52 </table> 51
53 <h3>Methods</h3> 52 <h3>Methods</h3>
54 53 <table>
55 <table>
56
57 <tr> 54 <tr>
58 <td><a href="#DownloadModel.__init__">DownloadModel</a></td> 55 <td><a href="#DownloadModel.__init__">DownloadModel</a></td>
59 <td>Constructor</td> 56 <td>Constructor</td>
60 </tr> 57 </tr>
61 <tr> 58 <tr>
77 <tr> 74 <tr>
78 <td><a href="#DownloadModel.rowCount">rowCount</a></td> 75 <td><a href="#DownloadModel.rowCount">rowCount</a></td>
79 <td>Public method to get the number of rows of the model.</td> 76 <td>Public method to get the number of rows of the model.</td>
80 </tr> 77 </tr>
81 </table> 78 </table>
79
82 <h3>Static Methods</h3> 80 <h3>Static Methods</h3>
83 81 <table>
84 <table> 82 <tr><td>None</td></tr>
85 <tr><td>None</td></tr> 83 </table>
86 </table> 84
87 85
88 <a NAME="DownloadModel.__init__" ID="DownloadModel.__init__"></a> 86 <a NAME="DownloadModel.__init__" ID="DownloadModel.__init__"></a>
89 <h4>DownloadModel (Constructor)</h4> 87 <h4>DownloadModel (Constructor)</h4>
90 <b>DownloadModel</b>(<i>manager, parent=None</i>) 88 <b>DownloadModel</b>(<i>manager, parent=None</i>)
91
92 <p> 89 <p>
93 Constructor 90 Constructor
94 </p> 91 </p>
92
95 <dl> 93 <dl>
96 94
97 <dt><i>manager</i> (DownloadManager)</dt> 95 <dt><i>manager</i> (DownloadManager)</dt>
98 <dd> 96 <dd>
99 reference to the download manager 97 reference to the download manager
104 </dd> 102 </dd>
105 </dl> 103 </dl>
106 <a NAME="DownloadModel.data" ID="DownloadModel.data"></a> 104 <a NAME="DownloadModel.data" ID="DownloadModel.data"></a>
107 <h4>DownloadModel.data</h4> 105 <h4>DownloadModel.data</h4>
108 <b>data</b>(<i>index, role</i>) 106 <b>data</b>(<i>index, role</i>)
109
110 <p> 107 <p>
111 Public method to get data from the model. 108 Public method to get data from the model.
112 </p> 109 </p>
110
113 <dl> 111 <dl>
114 112
115 <dt><i>index</i> (QModelIndex)</dt> 113 <dt><i>index</i> (QModelIndex)</dt>
116 <dd> 114 <dd>
117 index to get data for 115 index to get data for
134 </dd> 132 </dd>
135 </dl> 133 </dl>
136 <a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a> 134 <a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a>
137 <h4>DownloadModel.flags</h4> 135 <h4>DownloadModel.flags</h4>
138 <b>flags</b>(<i>index</i>) 136 <b>flags</b>(<i>index</i>)
139
140 <p> 137 <p>
141 Public method to get flags for an item. 138 Public method to get flags for an item.
142 </p> 139 </p>
140
143 <dl> 141 <dl>
144 142
145 <dt><i>index</i> (QModelIndex)</dt> 143 <dt><i>index</i> (QModelIndex)</dt>
146 <dd> 144 <dd>
147 index of the node cell 145 index of the node cell
160 </dd> 158 </dd>
161 </dl> 159 </dl>
162 <a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a> 160 <a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a>
163 <h4>DownloadModel.mimeData</h4> 161 <h4>DownloadModel.mimeData</h4>
164 <b>mimeData</b>(<i>indexes</i>) 162 <b>mimeData</b>(<i>indexes</i>)
165
166 <p> 163 <p>
167 Public method to return the mime data. 164 Public method to return the mime data.
168 </p> 165 </p>
166
169 <dl> 167 <dl>
170 168
171 <dt><i>indexes</i> (QModelIndexList)</dt> 169 <dt><i>indexes</i> (QModelIndexList)</dt>
172 <dd> 170 <dd>
173 list of indexes 171 list of indexes
186 </dd> 184 </dd>
187 </dl> 185 </dl>
188 <a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a> 186 <a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a>
189 <h4>DownloadModel.removeRows</h4> 187 <h4>DownloadModel.removeRows</h4>
190 <b>removeRows</b>(<i>row, count, parent=None</i>) 188 <b>removeRows</b>(<i>row, count, parent=None</i>)
191
192 <p> 189 <p>
193 Public method to remove downloads from the model. 190 Public method to remove downloads from the model.
194 </p> 191 </p>
192
195 <dl> 193 <dl>
196 194
197 <dt><i>row</i> (int)</dt> 195 <dt><i>row</i> (int)</dt>
198 <dd> 196 <dd>
199 row of the first download to remove 197 row of the first download to remove
220 </dd> 218 </dd>
221 </dl> 219 </dl>
222 <a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a> 220 <a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a>
223 <h4>DownloadModel.rowCount</h4> 221 <h4>DownloadModel.rowCount</h4>
224 <b>rowCount</b>(<i>parent=None</i>) 222 <b>rowCount</b>(<i>parent=None</i>)
225
226 <p> 223 <p>
227 Public method to get the number of rows of the model. 224 Public method to get the number of rows of the model.
228 </p> 225 </p>
226
229 <dl> 227 <dl>
230 228
231 <dt><i>parent</i> (QModelIndex)</dt> 229 <dt><i>parent</i> (QModelIndex)</dt>
232 <dd> 230 <dd>
233 parent index 231 parent index

eric ide

mercurial