eric6/WebBrowser/Download/DownloadModel.py

changeset 7268
a28338eaf694
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7267:aedc309827c7 7268:a28338eaf694
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):

eric ide

mercurial