mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Add a fonts sub-menu to the comments editor context menu
Matches the v3 context menu
This commit is contained in:
parent
268f36b8cc
commit
ba89de0def
@ -730,6 +730,10 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{
|
||||
else:
|
||||
menu.addAction(self.action_paste_and_match_style)
|
||||
st = self.text()
|
||||
m = QMenu(_('Fonts'))
|
||||
m.addAction(self.action_bold), m.addAction(self.action_italic), m.addAction(self.action_underline)
|
||||
menu.addMenu(m)
|
||||
|
||||
if st and st.strip():
|
||||
self.create_change_case_menu(menu)
|
||||
parent = self._parent()
|
||||
|
Loading…
x
Reference in New Issue
Block a user