eric7/WebBrowser/Download/DownloadManager.py

branch
eric7
changeset 8856
df77fbfc150f
parent 8556
766e1566cb74
child 8881
54e42bc2437a
equal deleted inserted replaced
8855:6bd9f3d7896e 8856:df77fbfc150f
312 312
313 self.downloadsView.setIndexWidget(self.__model.index(row, 0), itm) 313 self.downloadsView.setIndexWidget(self.__model.index(row, 0), itm)
314 icon = self.style().standardIcon(QStyle.StandardPixmap.SP_FileIcon) 314 icon = self.style().standardIcon(QStyle.StandardPixmap.SP_FileIcon)
315 itm.setIcon(icon) 315 itm.setIcon(icon)
316 self.downloadsView.setRowHeight( 316 self.downloadsView.setRowHeight(
317 row, itm.sizeHint().height() * self.__rowHeightMultiplier) 317 row, int(itm.sizeHint().height() * self.__rowHeightMultiplier))
318 # just in case the download finished before the constructor returned 318 # just in case the download finished before the constructor returned
319 self.__updateRow(itm) 319 self.__updateRow(itm)
320 self.changeOccurred() 320 self.changeOccurred()
321 321
322 self.downloadsCountChanged.emit() 322 self.downloadsCountChanged.emit()
341 icon = self.style().standardIcon(QStyle.StandardPixmap.SP_FileIcon) 341 icon = self.style().standardIcon(QStyle.StandardPixmap.SP_FileIcon)
342 itm.setIcon(icon) 342 itm.setIcon(icon)
343 343
344 self.downloadsView.setRowHeight( 344 self.downloadsView.setRowHeight(
345 row, 345 row,
346 itm.minimumSizeHint().height() * self.__rowHeightMultiplier) 346 int(itm.minimumSizeHint().height() * self.__rowHeightMultiplier))
347 347
348 remove = False 348 remove = False
349 349
350 if ( 350 if (
351 itm.downloadedSuccessfully() and 351 itm.downloadedSuccessfully() and

eric ide

mercurial