Made the row height of download items in the download manager 1.5 times the height reported by the item to ensure enough space for multiline item labels.

Sat, 22 Sep 2012 19:05:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 22 Sep 2012 19:05:29 +0200
changeset 2058
f3c50aa83266
parent 2055
9165261f3e06
child 2059
52113e2f672a

Made the row height of download items in the download manager 1.5 times the height reported by the item to ensure enough space for multiline item labels.

Helpviewer/Download/DownloadManager.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/Download/DownloadManager.py	Sat Sep 22 18:34:09 2012 +0200
+++ b/Helpviewer/Download/DownloadManager.py	Sat Sep 22 19:05:29 2012 +0200
@@ -215,7 +215,7 @@
         self.downloadsView.setIndexWidget(self.__model.index(row, 0), itm)
         icon = self.style().standardIcon(QStyle.SP_FileIcon)
         itm.setIcon(icon)
-        self.downloadsView.setRowHeight(row, itm.sizeHint().height())
+        self.downloadsView.setRowHeight(row, itm.sizeHint().height() * 1.5)
         # just in case the download finished before the constructor returned
         self.__updateRow(itm)
         self.changeOccurred()
@@ -245,7 +245,7 @@
         
         oldHeight = self.downloadsView.rowHeight(row)
         self.downloadsView.setRowHeight(row,
-            max(oldHeight, itm.minimumSizeHint().height()))
+            max(oldHeight, itm.minimumSizeHint().height() * 1.5))
         
         remove = False
         globalSettings = QWebSettings.globalSettings()

eric ide

mercurial