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() |