From dc01504b168ac9737ddd1eb839939410242238f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Nov 2013 14:09:38 +0530 Subject: [PATCH] Fix #1247004 [Version 1.9 Comments editor has no toolbar](https://bugs.launchpad.net/calibre/+bug/1247004) --- src/calibre/gui2/comments_editor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index fa599f37bf..170e831236 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -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 +