Fix #1247004 [Version 1.9 Comments editor has no toolbar](https://bugs.launchpad.net/calibre/+bug/1247004)

This commit is contained in:
Kovid Goyal 2013-11-01 14:09:38 +05:30
parent e80d1256c8
commit dc01504b16

View File

@ -640,9 +640,6 @@ class Editor(QWidget): # {{{
self.highlighter = Highlighter(self.code_edit.document())
self.layout().setContentsMargins(0, 0, 0, 0)
def set_minimum_height_for_editor(self, val):
self.editor.setMinimumHeight(val)
# toolbar1 {{{
self.toolbar1.addAction(self.editor.action_undo)
self.toolbar1.addAction(self.editor.action_redo)
@ -691,6 +688,9 @@ class Editor(QWidget): # {{{
self.code_edit.textChanged.connect(self.code_dirtied)
self.editor.page().contentsChanged.connect(self.wyswyg_dirtied)
def set_minimum_height_for_editor(self, val):
self.editor.setMinimumHeight(val)
@dynamic_property
def html(self):
def fset(self, v):
@ -740,3 +740,4 @@ if __name__ == '__main__':
app.exec_()
# print w.html