Merge branch 't-wissmann-progressbar'
This commit is contained in:
commit
e94f2f11d8
@ -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
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user