QShortcut rotateImageLeftShortcut; \r
QAction insertLinkAction;\r
QShortcut insertLinkShortcut;\r
+ QAction insertLatexAction;\r
+ QShortcut insertLatexShortcut;\r
QAction insertTableAction;\r
QShortcut insertTableShortcut;\r
QAction insertTableRowAction;\r
insertLinkShortcut = new QShortcut(this);\r
setupShortcut(insertLinkShortcut, "Edit_Insert_Hyperlink");\r
insertLinkShortcut.activated.connect(parent, "insertLink()");\r
+\r
+ insertLatexAction = new QAction(tr("Insert LaTeX Formula"), this);\r
+ insertLatexAction.triggered.connect(parent, "insertLatex()");\r
+ setupShortcut(insertLatexAction, "Insert_Latex");\r
+ contextMenu.addAction(insertLatexAction);\r
+ insertLatexShortcut = new QShortcut(this);\r
+ setupShortcut(insertLatexShortcut, "Latex_Insert");\r
+ insertLatexShortcut.activated.connect(parent, "insertLatex()");\r
\r
contextMenu.addMenu(tableMenu);\r
tableMenu.setTitle("Table");\r