Commit a687ead8 authored by Daniel Molkentin's avatar Daniel Molkentin

Add Help Menu Entry that points to the bug tracker.

Task-Number: QTCREATORBUG-5098
Change-Id: Ibed9e8eea98cb716f2eff29582a39e133c7d8607
Reviewed-on: http://codereview.qt.nokia.com/2221Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent a1ffc4a1
......@@ -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())
......
......@@ -116,6 +116,7 @@ private slots:
void slotAboutToShowNextMenu();
void slotOpenActionUrl(QAction *action);
void slotOpenSupportPage();
void slotReportBug();
void openFindToolBar();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment