Fix docstrings.
This commit is contained in:
parent
0ef323c26a
commit
124099ac4c
@ -77,11 +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()
|
height = self.fontMetrics().height()
|
||||||
return QSize(width, height)
|
return QSize(width, height)
|
||||||
|
|
||||||
def minimumSizeHint(self):
|
def minimumSizeHint(self):
|
||||||
"""Set the height to the text height plus some padding."""
|
|
||||||
return self.sizeHint()
|
return self.sizeHint()
|
||||||
|
Loading…
Reference in New Issue
Block a user