mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix random order of font family config choices in editor preview panel preferences
This commit is contained in:
parent
c88614c526
commit
cc73789554
@ -348,7 +348,8 @@ class PreviewSettings(BasicSettings):
|
|||||||
w.setCurrentFont(QFont(val))
|
w.setCurrentFont(QFont(val))
|
||||||
|
|
||||||
families = {'serif':_('Serif text'), 'sans':_('Sans-serif text'), 'mono':_('Monospaced text')}
|
families = {'serif':_('Serif text'), 'sans':_('Sans-serif text'), 'mono':_('Monospaced text')}
|
||||||
for fam, text in families.iteritems():
|
for fam in sorted(families):
|
||||||
|
text = families[fam]
|
||||||
w = QFontComboBox(self)
|
w = QFontComboBox(self)
|
||||||
self('preview_%s_family' % fam, widget=w, getter=family_getter, setter=family_setter)
|
self('preview_%s_family' % fam, widget=w, getter=family_getter, setter=family_setter)
|
||||||
l.addRow(_('Font family for &%s:') % text, w)
|
l.addRow(_('Font family for &%s:') % text, w)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user