mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1247004 [Version 1.9 Comments editor has no toolbar](https://bugs.launchpad.net/calibre/+bug/1247004)
This commit is contained in:
parent
e80d1256c8
commit
dc01504b16
@ -640,9 +640,6 @@ class Editor(QWidget): # {{{
|
|||||||
self.highlighter = Highlighter(self.code_edit.document())
|
self.highlighter = Highlighter(self.code_edit.document())
|
||||||
self.layout().setContentsMargins(0, 0, 0, 0)
|
self.layout().setContentsMargins(0, 0, 0, 0)
|
||||||
|
|
||||||
def set_minimum_height_for_editor(self, val):
|
|
||||||
self.editor.setMinimumHeight(val)
|
|
||||||
|
|
||||||
# toolbar1 {{{
|
# toolbar1 {{{
|
||||||
self.toolbar1.addAction(self.editor.action_undo)
|
self.toolbar1.addAction(self.editor.action_undo)
|
||||||
self.toolbar1.addAction(self.editor.action_redo)
|
self.toolbar1.addAction(self.editor.action_redo)
|
||||||
@ -691,6 +688,9 @@ class Editor(QWidget): # {{{
|
|||||||
self.code_edit.textChanged.connect(self.code_dirtied)
|
self.code_edit.textChanged.connect(self.code_dirtied)
|
||||||
self.editor.page().contentsChanged.connect(self.wyswyg_dirtied)
|
self.editor.page().contentsChanged.connect(self.wyswyg_dirtied)
|
||||||
|
|
||||||
|
def set_minimum_height_for_editor(self, val):
|
||||||
|
self.editor.setMinimumHeight(val)
|
||||||
|
|
||||||
@dynamic_property
|
@dynamic_property
|
||||||
def html(self):
|
def html(self):
|
||||||
def fset(self, v):
|
def fset(self, v):
|
||||||
@ -740,3 +740,4 @@ if __name__ == '__main__':
|
|||||||
app.exec_()
|
app.exec_()
|
||||||
# print w.html
|
# print w.html
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user