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 * Jimmy
* Zach-Button * Zach-Button
* rikn00 * rikn00
* Thorsten Wißmann
* Patric Schmitz * Patric Schmitz
* Martin Zimmermann * Martin Zimmermann
* Error 800 * Error 800
* Brian Jackson * Brian Jackson
* sbinix * sbinix
* Tobias Patzl * Tobias Patzl
* Thorsten Wißmann
* Johannes Altmanninger * Johannes Altmanninger
* Samir Benmendil * Samir Benmendil
* Regina Hug * Regina Hug

View File

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