diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 5ae357652c4..baca4988ad6 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -261,6 +261,11 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error) am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP); connect(action, SIGNAL(triggered()), this, SLOT(slotOpenSupportPage())); + action = new QAction(tr("Report Bug"), this); + cmd = am->registerAction(action, Core::Id("Help.ReportBug"), globalcontext); + am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP); + connect(action, SIGNAL(triggered()), this, SLOT(slotReportBug())); + #ifndef Q_WS_MAC action = new QAction(this); action->setSeparator(true); @@ -1210,6 +1215,11 @@ void HelpPlugin::slotOpenSupportPage() switchToHelpMode(QUrl("qthelp://com.nokia.qtcreator/doc/technical-support.html")); } +void HelpPlugin::slotReportBug() +{ + QDesktopServices::openUrl(QUrl("http://bugreports.qt.nokia.com")); +} + void HelpPlugin::openFindToolBar() { if (Find::FindPlugin::instance()) diff --git a/src/plugins/help/helpplugin.h b/src/plugins/help/helpplugin.h index 2700cd6ebfe..97443d5927c 100644 --- a/src/plugins/help/helpplugin.h +++ b/src/plugins/help/helpplugin.h @@ -116,6 +116,7 @@ private slots: void slotAboutToShowNextMenu(); void slotOpenActionUrl(QAction *action); void slotOpenSupportPage(); + void slotReportBug(); void openFindToolBar();