Merge branch 'progressbar' of git://github.com/t-wissmann/qutebrowser into t-wissmann-progressbar

This commit is contained in:
Florian Bruhin 2015-08-25 21:18:02 +02:00
commit 8171a53478

View File

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