Helpviewer/Download/DownloadManager.py

changeset 2058
f3c50aa83266
parent 1131
7781e396c903
child 2403
e3d7a861547c
equal deleted inserted replaced
2055:9165261f3e06 2058:f3c50aa83266
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):

eric ide

mercurial