mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 03:53:51 +02:00
More pyqt6 nonsense
This commit is contained in:
parent
c93fc55315
commit
36345e1efb
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ def initialize_formats(self):
|
|||
config["%sfontbold" % name] = bold
|
||||
config["%sfontitalic" % name] = italic
|
||||
base_format = QTextCharFormat()
|
||||
base_format.setFontFamily(config["fontfamily"])
|
||||
base_format.setFontFamilies([config["fontfamily"]])
|
||||
config["fontsize"] = size
|
||||
base_format.setFontPointSize(config["fontsize"])
|
||||
|
||||
|
|
|
|||
|
|
@ -873,7 +873,7 @@ def a(a, b):
|
|||
@classmethod
|
||||
def initializeFormats(cls):
|
||||
baseFormat = QTextCharFormat()
|
||||
baseFormat.setFontFamily('monospace')
|
||||
baseFormat.setFontFamilies(['monospace'])
|
||||
p = QApplication.instance().palette()
|
||||
for name, color, bold, italic in (
|
||||
("normal", None, False, False),
|
||||
|
|
|
|||
Loading…
Reference in a new issue