mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-28 11:54:49 +01:00
...
This commit is contained in:
parent
43618df996
commit
6fe4d095ce
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
from calibre.ebooks.metadata.book.base import Metadata
|
||||
from calibre.utils.localization import canonicalize_lang
|
||||
from calibre.utils.date import local_tz
|
||||
from calibre.constants import iswindows, isosx
|
||||
|
||||
BASE_TITLE = _('Edit Metadata')
|
||||
|
||||
|
|
@ -108,7 +109,7 @@ def fix_push_buttons(self, *args):
|
|||
# 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() + 2
|
||||
ht = self.next_button.height() if iswindows or isosx else self.title.height() + 1
|
||||
for but in self.findChildren(QPushButton):
|
||||
but.setMaximumHeight(ht)
|
||||
but.setMinimumHeight(ht)
|
||||
|
|
|
|||
Loading…
Reference in a new issue