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. 5_2_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 22 Sep 2012 19:07:05 +0200
branch
5_2_x
changeset 2056
7ae5c3210c91
parent 2049
966ae2a9069b
child 2057
547bda693655

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	Wed Sep 19 18:21:04 2012 +0200
+++ b/Helpviewer/Download/DownloadManager.py	Sat Sep 22 19:07:05 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