Helpviewer/Download/DownloadModel.py

changeset 3002
6ffc581f00f1
parent 2954
bf0215fe12d1
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
3001:3674ff5fa8f8 3002:6ffc581f00f1
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()):

eric ide

mercurial