Added the code needed for opening documentation in the viewer

This commit is contained in:
Veronica K. B. Olsen
2019-06-09 10:35:12 +02:00
parent c8888e7536
commit b3df4ee0f2
4 changed files with 33 additions and 1 deletions
+10
View File
@@ -516,6 +516,16 @@ class GuiMainMenu(QMenuBar):
menuItem.triggered.connect(self._showAboutQt)
self.helpMenu.addAction(menuItem)
# Help > Separator
self.helpMenu.addSeparator()
# Document > Preview
menuItem = QAction(QIcon.fromTheme("text-html"), "Documentation", self)
menuItem.setStatusTip("View documentation")
menuItem.setShortcut("F1")
menuItem.triggered.connect(lambda : self.theParent.viewDocument("Help"))
self.helpMenu.addAction(menuItem)
return
# END Class GuiMainMenu