1
0

Added report_bug and show_about hooks for menu.

This commit is contained in:
Amir Taaki
2012-08-12 21:31:04 +01:00
parent 46419a0457
commit 5ff2c45a56

View File

@@ -202,8 +202,10 @@ class MiniWindow(QDialog):
help_menu = menubar.addMenu(_("&Help")) help_menu = menubar.addMenu(_("&Help"))
help_menu.addAction(_("&Contents")) help_menu.addAction(_("&Contents"))
help_menu.addSeparator() help_menu.addSeparator()
help_menu.addAction(_("&Report Bug")) report_bug = help_menu.addAction(_("&Report Bug"))
help_menu.addAction(_("&About")) self.connect(report_bug, SIGNAL("triggered()"), self.show_report_bug)
show_about = help_menu.addAction(_("&About"))
self.connect(show_about, SIGNAL("triggered()"), self.show_about)
main_layout.setMenuBar(menubar) main_layout.setMenuBar(menubar)
quit_shortcut = QShortcut(QKeySequence("Ctrl+Q"), self) quit_shortcut = QShortcut(QKeySequence("Ctrl+Q"), self)