eric6/Documentation/Source/eric6.WebBrowser.Download.DownloadModel.html

branch
maintenance
changeset 6989
8b8cadf8d7e9
parent 6942
2602857055c5
child 7273
391d6b7b1eff
equal deleted inserted replaced
6938:7926553b7509 6989:8b8cadf8d7e9
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.WebBrowser.Download.DownloadModel</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.WebBrowser.Download.DownloadModel</h1>
23 <p>
24 Module implementing the download model.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#DownloadModel">DownloadModel</a></td>
34 <td>Class implementing the download model.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="DownloadModel" ID="DownloadModel"></a>
43 <h2>DownloadModel</h2>
44 <p>
45 Class implementing the download model.
46 </p>
47 <h3>Derived from</h3>
48 QAbstractListModel
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#DownloadModel.__init__">DownloadModel</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#DownloadModel.data">data</a></td>
64 <td>Public method to get data from the model.</td>
65 </tr><tr>
66 <td><a href="#DownloadModel.flags">flags</a></td>
67 <td>Public method to get flags for an item.</td>
68 </tr><tr>
69 <td><a href="#DownloadModel.mimeData">mimeData</a></td>
70 <td>Public method to return the mime data.</td>
71 </tr><tr>
72 <td><a href="#DownloadModel.removeRows">removeRows</a></td>
73 <td>Public method to remove downloads from the model.</td>
74 </tr><tr>
75 <td><a href="#DownloadModel.rowCount">rowCount</a></td>
76 <td>Public method to get the number of rows of the model.</td>
77 </tr>
78 </table>
79 <h3>Static Methods</h3>
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83 <a NAME="DownloadModel.__init__" ID="DownloadModel.__init__"></a>
84 <h4>DownloadModel (Constructor)</h4>
85 <b>DownloadModel</b>(<i>manager, parent=None</i>)
86 <p>
87 Constructor
88 </p><dl>
89 <dt><i>manager</i> (DownloadManager)</dt>
90 <dd>
91 reference to the download manager
92 </dd><dt><i>parent</i> (QObject)</dt>
93 <dd>
94 reference to the parent object
95 </dd>
96 </dl><a NAME="DownloadModel.data" ID="DownloadModel.data"></a>
97 <h4>DownloadModel.data</h4>
98 <b>data</b>(<i>index, role</i>)
99 <p>
100 Public method to get data from the model.
101 </p><dl>
102 <dt><i>index</i> (QModelIndex)</dt>
103 <dd>
104 index to get data for
105 </dd><dt><i>role</i> (int)</dt>
106 <dd>
107 role of the data to retrieve
108 </dd>
109 </dl><dl>
110 <dt>Returns:</dt>
111 <dd>
112 requested data
113 </dd>
114 </dl><dl>
115 <dt>Return Type:</dt>
116 <dd>
117 any
118 </dd>
119 </dl><a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a>
120 <h4>DownloadModel.flags</h4>
121 <b>flags</b>(<i>index</i>)
122 <p>
123 Public method to get flags for an item.
124 </p><dl>
125 <dt><i>index</i> (QModelIndex)</dt>
126 <dd>
127 index of the node cell
128 </dd>
129 </dl><dl>
130 <dt>Returns:</dt>
131 <dd>
132 flags
133 </dd>
134 </dl><dl>
135 <dt>Return Type:</dt>
136 <dd>
137 Qt.ItemFlags
138 </dd>
139 </dl><a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a>
140 <h4>DownloadModel.mimeData</h4>
141 <b>mimeData</b>(<i>indexes</i>)
142 <p>
143 Public method to return the mime data.
144 </p><dl>
145 <dt><i>indexes</i> (QModelIndexList)</dt>
146 <dd>
147 list of indexes
148 </dd>
149 </dl><dl>
150 <dt>Returns:</dt>
151 <dd>
152 mime data
153 </dd>
154 </dl><dl>
155 <dt>Return Type:</dt>
156 <dd>
157 QMimeData
158 </dd>
159 </dl><a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a>
160 <h4>DownloadModel.removeRows</h4>
161 <b>removeRows</b>(<i>row, count, parent=None</i>)
162 <p>
163 Public method to remove downloads from the model.
164 </p><dl>
165 <dt><i>row</i> (int)</dt>
166 <dd>
167 row of the first download to remove
168 </dd><dt><i>count</i> (int)</dt>
169 <dd>
170 number of downloads to remove
171 </dd><dt><i>parent</i> (QModelIndex)</dt>
172 <dd>
173 index of the parent download node
174 </dd>
175 </dl><dl>
176 <dt>Returns:</dt>
177 <dd>
178 flag indicating successful removal
179 </dd>
180 </dl><dl>
181 <dt>Return Type:</dt>
182 <dd>
183 bool
184 </dd>
185 </dl><a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a>
186 <h4>DownloadModel.rowCount</h4>
187 <b>rowCount</b>(<i>parent=None</i>)
188 <p>
189 Public method to get the number of rows of the model.
190 </p><dl>
191 <dt><i>parent</i> (QModelIndex)</dt>
192 <dd>
193 parent index
194 </dd>
195 </dl><dl>
196 <dt>Returns:</dt>
197 <dd>
198 number of rows
199 </dd>
200 </dl><dl>
201 <dt>Return Type:</dt>
202 <dd>
203 int
204 </dd>
205 </dl>
206 <div align="right"><a href="#top">Up</a></div>
207 <hr />
208 </body></html>

eric ide

mercurial