Merge branch 't-wissmann-progressbar'

This commit is contained in:
Florian Bruhin 2015-08-25 21:18:52 +02:00
commit e94f2f11d8
2 changed files with 6 additions and 3 deletions

View File

@ -151,13 +151,13 @@ Contributors, sorted by the number of commits in descending order:
* Jimmy
* Zach-Button
* rikn00
* Thorsten Wißmann
* Patric Schmitz
* Martin Zimmermann
* Error 800
* Brian Jackson
* sbinix
* Tobias Patzl
* Thorsten Wißmann
* Johannes Altmanninger
* Samir Benmendil
* Regina Hug

View File

@ -77,7 +77,10 @@ class Progress(QProgressBar):
self.hide()
def sizeHint(self):
"""Set the height to the text height plus some padding."""
"""Set the height to the text height."""
width = super().sizeHint().width()
height = self.fontMetrics().height() + 3
height = self.fontMetrics().height()
return QSize(width, height)
def minimumSizeHint(self):
return self.sizeHint()