void MenuBar::addHelpMenu() { QMenu *m = new QMenu(__("help", "menubar"), this); m->addAction(__("about", "menubar"), parent(), SLOT(onMenuBarHelpAbout())); m->addAction(__("documentation", "menubar"), parent(), SLOT(onMenuBarHelpDocumentation())); m->addSeparator(); QMenu *f = new QMenu(__("feedback", "menubar"), m); f->addAction(__("say_thanks", "menubar"), parent(), SLOT(onMenuBarHelpFeedbackThanks())); f->addAction(__("report_issues", "menubar"), parent(), SLOT(onMenuBarHelpFeedbackIssues())); m->addAction(f->menuAction()); m->addAction(__("contribute", "menubar"), parent(), SLOT(onMenuBarHelpContribute())); addAction(m->menuAction()); }
void MenuBar::addHelpMenu() { QMenu *m = new QMenu(Qrc::text("menubar.help"), this); m->addAction(Qrc::text("menubar.help.about"), parent(), SLOT(onMenuBarHelpAbout())); m->addAction(Qrc::text("menubar.help.documentation"), parent(), SLOT(onMenuBarHelpDocumentation())); m->addSeparator(); QMenu *f = new QMenu(Qrc::text("menubar.help.feedback"), m); f->addAction(Qrc::text("menubar.help.feedback.thanks"), parent(), SLOT(onMenuBarHelpFeedbackThanks())); f->addAction(Qrc::text("menubar.help.feedback.issues"), parent(), SLOT(onMenuBarHelpFeedbackIssues())); m->addAction(f->menuAction()); m->addAction(Qrc::text("menubar.help.contribute"), parent(), SLOT(onMenuBarHelpContribute())); m->addSeparator(); addAction(m->menuAction()); }