35 """ |
35 """ |
36 if index.row() < 0 or index.row() >= self.rowCount(index.parent()): |
36 if index.row() < 0 or index.row() >= self.rowCount(index.parent()): |
37 return None |
37 return None |
38 |
38 |
39 if role == Qt.ToolTipRole: |
39 if role == Qt.ToolTipRole: |
40 if self.__manager.downloads()[index.row()].downloadedSuccessfully(): |
40 if self.__manager.downloads()[index.row()]\ |
|
41 .downloadedSuccessfully(): |
41 return self.__manager.downloads()[index.row()].getInfoData() |
42 return self.__manager.downloads()[index.row()].getInfoData() |
42 |
43 |
43 return None |
44 return None |
44 |
45 |
45 def rowCount(self, parent=QModelIndex()): |
46 def rowCount(self, parent=QModelIndex()): |