This commit is contained in:
Kovid Goyal 2021-11-10 22:23:13 +05:30
parent 10905d4329
commit 3dc50b41ca
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -272,7 +272,7 @@ class RuleEdit(QWidget): # {{{
class RuleEditDialog(RuleEditDialogBase): # {{{ class RuleEditDialog(RuleEditDialogBase): # {{{
PREFS_NAME = 'edit-css-transform-rule' PREFS_NAME = 'edit-html-transform-rule'
DIALOG_TITLE = _('Edit rule') DIALOG_TITLE = _('Edit rule')
RuleEditClass = RuleEdit RuleEditClass = RuleEdit
# }}} # }}}
@ -325,7 +325,7 @@ class Tester(Dialog): # {{{
self.bb.setStandardButtons(QDialogButtonBox.StandardButton.Close) self.bb.setStandardButtons(QDialogButtonBox.StandardButton.Close)
self.la = la = QLabel(self.LABEL) self.la = la = QLabel(self.LABEL)
l.addWidget(la) 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') t.load_text('<!-- %s -->\n' % _('Enter the HTML below and click the "Test" button'), 'html')
la.setBuddy(t) la.setBuddy(t)
c = t.textCursor() c = t.textCursor()
@ -344,7 +344,7 @@ class Tester(Dialog): # {{{
@property @property
def value(self): def value(self):
return self.css.toPlainText() return self.html.toPlainText()
def do_test(self): def do_test(self):
raise NotImplementedError('TODO: Implement this') raise NotImplementedError('TODO: Implement this')