mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
10905d4329
commit
3dc50b41ca
@ -272,7 +272,7 @@ class RuleEdit(QWidget): # {{{
|
||||
|
||||
class RuleEditDialog(RuleEditDialogBase): # {{{
|
||||
|
||||
PREFS_NAME = 'edit-css-transform-rule'
|
||||
PREFS_NAME = 'edit-html-transform-rule'
|
||||
DIALOG_TITLE = _('Edit rule')
|
||||
RuleEditClass = RuleEdit
|
||||
# }}}
|
||||
@ -325,7 +325,7 @@ class Tester(Dialog): # {{{
|
||||
self.bb.setStandardButtons(QDialogButtonBox.StandardButton.Close)
|
||||
self.la = la = QLabel(self.LABEL)
|
||||
l.addWidget(la)
|
||||
self.css = t = TextEdit(self)
|
||||
self.html = t = TextEdit(self)
|
||||
t.load_text('<!-- %s -->\n' % _('Enter the HTML below and click the "Test" button'), 'html')
|
||||
la.setBuddy(t)
|
||||
c = t.textCursor()
|
||||
@ -344,7 +344,7 @@ class Tester(Dialog): # {{{
|
||||
|
||||
@property
|
||||
def value(self):
|
||||
return self.css.toPlainText()
|
||||
return self.html.toPlainText()
|
||||
|
||||
def do_test(self):
|
||||
raise NotImplementedError('TODO: Implement this')
|
||||
|
Loading…
x
Reference in New Issue
Block a user