Helpviewer/Download/DownloadModel.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the download model. 7 Module implementing the download model.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import Qt, QAbstractListModel, QModelIndex, QMimeData, QUrl 12 from PyQt4.QtCore import Qt, QAbstractListModel, QModelIndex, QMimeData, QUrl
11 13
12 14
13 class DownloadModel(QAbstractListModel): 15 class DownloadModel(QAbstractListModel):
19 Constructor 21 Constructor
20 22
21 @param manager reference to the download manager (DownloadManager) 23 @param manager reference to the download manager (DownloadManager)
22 @param parent reference to the parent object (QObject) 24 @param parent reference to the parent object (QObject)
23 """ 25 """
24 super().__init__(parent) 26 super(DownloadModel, self).__init__(parent)
25 27
26 self.__manager = manager 28 self.__manager = manager
27 29
28 def data(self, index, role): 30 def data(self, index, role):
29 """ 31 """

eric ide

mercurial