|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Helpviewer.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.Helpviewer.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 bookmarks 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></dt> |
|
90 <dd> |
|
91 reference to the download manager (DownloadManager) |
|
92 </dd><dt><i>parent</i></dt> |
|
93 <dd> |
|
94 reference to the parent object (QObject) |
|
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></dt> |
|
103 <dd> |
|
104 index to get data for (QModelIndex) |
|
105 </dd><dt><i>role</i></dt> |
|
106 <dd> |
|
107 role of the data to retrieve (integer) |
|
108 </dd> |
|
109 </dl><dl> |
|
110 <dt>Returns:</dt> |
|
111 <dd> |
|
112 requested data |
|
113 </dd> |
|
114 </dl><a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a> |
|
115 <h4>DownloadModel.flags</h4> |
|
116 <b>flags</b>(<i>index</i>) |
|
117 <p> |
|
118 Public method to get flags for an item. |
|
119 </p><dl> |
|
120 <dt><i>index</i></dt> |
|
121 <dd> |
|
122 index of the node cell (QModelIndex) |
|
123 </dd> |
|
124 </dl><dl> |
|
125 <dt>Returns:</dt> |
|
126 <dd> |
|
127 flags (Qt.ItemFlags) |
|
128 </dd> |
|
129 </dl><a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a> |
|
130 <h4>DownloadModel.mimeData</h4> |
|
131 <b>mimeData</b>(<i>indexes</i>) |
|
132 <p> |
|
133 Public method to return the mime data. |
|
134 </p><dl> |
|
135 <dt><i>indexes</i></dt> |
|
136 <dd> |
|
137 list of indexes (QModelIndexList) |
|
138 </dd> |
|
139 </dl><dl> |
|
140 <dt>Returns:</dt> |
|
141 <dd> |
|
142 mime data (QMimeData) |
|
143 </dd> |
|
144 </dl><a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a> |
|
145 <h4>DownloadModel.removeRows</h4> |
|
146 <b>removeRows</b>(<i>row, count, parent=None</i>) |
|
147 <p> |
|
148 Public method to remove bookmarks from the model. |
|
149 </p><dl> |
|
150 <dt><i>row</i></dt> |
|
151 <dd> |
|
152 row of the first bookmark to remove (integer) |
|
153 </dd><dt><i>count</i></dt> |
|
154 <dd> |
|
155 number of bookmarks to remove (integer) |
|
156 </dd><dt><i>parent</i></dt> |
|
157 <dd> |
|
158 index of the parent bookmark node (QModelIndex) |
|
159 </dd> |
|
160 </dl><dl> |
|
161 <dt>Returns:</dt> |
|
162 <dd> |
|
163 flag indicating successful removal (boolean) |
|
164 </dd> |
|
165 </dl><a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a> |
|
166 <h4>DownloadModel.rowCount</h4> |
|
167 <b>rowCount</b>(<i>parent=None</i>) |
|
168 <p> |
|
169 Public method to get the number of rows of the model. |
|
170 </p><dl> |
|
171 <dt><i>parent</i></dt> |
|
172 <dd> |
|
173 parent index (QModelIndex) |
|
174 </dd> |
|
175 </dl><dl> |
|
176 <dt>Returns:</dt> |
|
177 <dd> |
|
178 number of rows (integer) |
|
179 </dd> |
|
180 </dl> |
|
181 <div align="right"><a href="#top">Up</a></div> |
|
182 <hr /> |
|
183 </body></html> |