This commit is contained in:
Kovid Goyal 2012-06-03 01:20:23 +05:30
parent 43bf3cc68d
commit 4c99108b03

View File

@ -106,6 +106,8 @@ class MetadataSingleDialogBase(ResizableDialog):
# Ensure all PushButtons stay the same consistent height throughout this
# dialog. Without this, the buttons inside scrollareas get shrunk,
# while the buttons outside them do not, leading to weirdness.
# Further, buttons with and without icons have different minimum sizes
# so things look even more out of whack.
ht = self.title.height()
for but in self.findChildren(QPushButton):
but.setMaximumHeight(ht)