mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
more pyqt6 enum goodness
Fixes #1959011 [Printing doesn't work in beta 5.99.4 (portable)](https://bugs.launchpad.net/calibre/+bug/1959011)
This commit is contained in:
parent
cb975976c1
commit
ee2defeecc
@ -37,7 +37,7 @@ class PrintDialog(Dialog):
|
|||||||
def __init__(self, book_title, parent=None, prefs=vprefs):
|
def __init__(self, book_title, parent=None, prefs=vprefs):
|
||||||
self.book_title = book_title
|
self.book_title = book_title
|
||||||
self.default_file_name = sanitize_file_name(book_title[:75] + '.pdf')
|
self.default_file_name = sanitize_file_name(book_title[:75] + '.pdf')
|
||||||
self.paper_size_map = {a:getattr(QPageSize, a.capitalize()) for a in PAPER_SIZES}
|
self.paper_size_map = {a:getattr(QPageSize.PageSizeId, a.capitalize()) for a in PAPER_SIZES}
|
||||||
Dialog.__init__(self, _('Print to PDF'), 'print-to-pdf', prefs=prefs, parent=parent)
|
Dialog.__init__(self, _('Print to PDF'), 'print-to-pdf', prefs=prefs, parent=parent)
|
||||||
|
|
||||||
def setup_ui(self):
|
def setup_ui(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user