Edit Book: Fix order of checkboxes in filter style information tool is random

This commit is contained in:
Kovid Goyal 2015-09-28 01:43:46 +05:30
parent f84223da03
commit e1c1e617bc

View File

@ -923,8 +923,9 @@ class FilterCSS(Dialog): # {{{
l.addRow(QLabel(_('Select what style information you want completely removed:'))) l.addRow(QLabel(_('Select what style information you want completely removed:')))
self.h = h = QHBoxLayout() self.h = h = QHBoxLayout()
for name, text in { for name, text in (
'fonts':_('&Fonts'), 'margins':_('&Margins'), 'padding':_('&Padding'), 'floats':_('Flo&ats'), 'colors':_('&Colors')}.iteritems(): ('fonts', _('&Fonts')), ('margins', _('&Margins')), ('padding', _('&Padding')), ('floats', _('Flo&ats')), ('colors', _('&Colors')),
):
c = QCheckBox(text) c = QCheckBox(text)
setattr(self, 'opt_' + name, c) setattr(self, 'opt_' + name, c)
h.addWidget(c) h.addWidget(c)