Fix docstrings.

This commit is contained in:
Florian Bruhin 2015-08-25 21:18:45 +02:00
parent 0ef323c26a
commit 124099ac4c

View File

@ -77,11 +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()
return QSize(width, height)
def minimumSizeHint(self):
"""Set the height to the text height plus some padding."""
return self.sizeHint()