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): # {{{
|
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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user