41 """ |
41 """ |
42 if index.row() < 0 or index.row() >= self.rowCount(index.parent()): |
42 if index.row() < 0 or index.row() >= self.rowCount(index.parent()): |
43 return None |
43 return None |
44 |
44 |
45 if role == Qt.ToolTipRole: |
45 if role == Qt.ToolTipRole: |
46 if self.__manager.downloads()[index.row()]\ |
46 if ( |
47 .downloadedSuccessfully(): |
47 self.__manager.downloads()[index.row()] |
|
48 .downloadedSuccessfully() |
|
49 ): |
48 return self.__manager.downloads()[index.row()].getInfoData() |
50 return self.__manager.downloads()[index.row()].getInfoData() |
49 |
51 |
50 return None |
52 return None |
51 |
53 |
52 def rowCount(self, parent=None): |
54 def rowCount(self, parent=None): |