Fix docstrings.
This commit is contained in:
parent
0ef323c26a
commit
124099ac4c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user