213 self.__model.endInsertRows() |
213 self.__model.endInsertRows() |
214 |
214 |
215 self.downloadsView.setIndexWidget(self.__model.index(row, 0), itm) |
215 self.downloadsView.setIndexWidget(self.__model.index(row, 0), itm) |
216 icon = self.style().standardIcon(QStyle.SP_FileIcon) |
216 icon = self.style().standardIcon(QStyle.SP_FileIcon) |
217 itm.setIcon(icon) |
217 itm.setIcon(icon) |
218 self.downloadsView.setRowHeight(row, itm.sizeHint().height()) |
218 self.downloadsView.setRowHeight(row, itm.sizeHint().height() * 1.5) |
219 # just in case the download finished before the constructor returned |
219 # just in case the download finished before the constructor returned |
220 self.__updateRow(itm) |
220 self.__updateRow(itm) |
221 self.changeOccurred() |
221 self.changeOccurred() |
222 self.__updateActiveItemCount() |
222 self.__updateActiveItemCount() |
223 |
223 |
243 icon = self.style().standardIcon(QStyle.SP_FileIcon) |
243 icon = self.style().standardIcon(QStyle.SP_FileIcon) |
244 itm.setIcon(icon) |
244 itm.setIcon(icon) |
245 |
245 |
246 oldHeight = self.downloadsView.rowHeight(row) |
246 oldHeight = self.downloadsView.rowHeight(row) |
247 self.downloadsView.setRowHeight(row, |
247 self.downloadsView.setRowHeight(row, |
248 max(oldHeight, itm.minimumSizeHint().height())) |
248 max(oldHeight, itm.minimumSizeHint().height() * 1.5)) |
249 |
249 |
250 remove = False |
250 remove = False |
251 globalSettings = QWebSettings.globalSettings() |
251 globalSettings = QWebSettings.globalSettings() |
252 if not itm.downloading() and \ |
252 if not itm.downloading() and \ |
253 globalSettings.testAttribute(QWebSettings.PrivateBrowsingEnabled): |
253 globalSettings.testAttribute(QWebSettings.PrivateBrowsingEnabled): |