eric6/WebBrowser/Download/DownloadModel.py

changeset 8227
349308e84eeb
parent 8218
7c09585bd960
equal deleted inserted replaced
8226:6dc5b1db7bdc 8227:349308e84eeb
39 @rtype any 39 @rtype any
40 """ 40 """
41 if index.row() < 0 or index.row() >= self.rowCount(index.parent()): 41 if index.row() < 0 or index.row() >= self.rowCount(index.parent()):
42 return None 42 return None
43 43
44 if role == Qt.ItemDataRole.ToolTipRole: 44 if (
45 if ( 45 role == Qt.ItemDataRole.ToolTipRole and
46 self.__manager.downloads()[index.row()] 46 self.__manager.downloads()[index.row()].downloadedSuccessfully()
47 .downloadedSuccessfully() 47 ):
48 ): 48 return self.__manager.downloads()[index.row()].getInfoData()
49 return self.__manager.downloads()[index.row()].getInfoData()
50 49
51 return None 50 return None
52 51
53 def rowCount(self, parent=None): 52 def rowCount(self, parent=None):
54 """ 53 """

eric ide

mercurial