mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 11:24:45 +02: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
1 changed files with 4 additions and 0 deletions
|
|
@ -730,6 +730,10 @@ def contextMenuEvent(self, ev):
|
|||
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…
Reference in a new issue