mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
43618df996
commit
6fe4d095ce
@ -27,6 +27,7 @@ from calibre.utils.config import tweaks
|
|||||||
from calibre.ebooks.metadata.book.base import Metadata
|
from calibre.ebooks.metadata.book.base import Metadata
|
||||||
from calibre.utils.localization import canonicalize_lang
|
from calibre.utils.localization import canonicalize_lang
|
||||||
from calibre.utils.date import local_tz
|
from calibre.utils.date import local_tz
|
||||||
|
from calibre.constants import iswindows, isosx
|
||||||
|
|
||||||
BASE_TITLE = _('Edit Metadata')
|
BASE_TITLE = _('Edit Metadata')
|
||||||
|
|
||||||
@ -108,7 +109,7 @@ class MetadataSingleDialogBase(ResizableDialog):
|
|||||||
# while the buttons outside them do not, leading to weirdness.
|
# while the buttons outside them do not, leading to weirdness.
|
||||||
# Further, buttons with and without icons have different minimum sizes
|
# Further, buttons with and without icons have different minimum sizes
|
||||||
# so things look even more out of whack.
|
# 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):
|
for but in self.findChildren(QPushButton):
|
||||||
but.setMaximumHeight(ht)
|
but.setMaximumHeight(ht)
|
||||||
but.setMinimumHeight(ht)
|
but.setMinimumHeight(ht)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user