QmlDesigner: Report Bug link for QDS

Task: QDS-1272

Change-Id: I1d369d2a53d6829651a8c70be77ef4e5855d775c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Aleksei German
2021-05-04 16:58:20 +02:00
parent 077c149667
commit b92acd3e8e

View File

@@ -266,11 +266,16 @@ HelpPluginPrivate::HelpPluginPrivate()
Core::HelpManager::HelpModeAlways); Core::HelpManager::HelpModeAlways);
}); });
const QString qdsStandaloneEntry = "QML/Designer/StandAloneMode"; //entry from designer settings
const bool isDesigner = Core::ICore::settings()->value(qdsStandaloneEntry, false).toBool();
action = new QAction(HelpPlugin::tr("Report Bug..."), this); action = new QAction(HelpPlugin::tr("Report Bug..."), this);
cmd = ActionManager::registerAction(action, "Help.ReportBug"); cmd = ActionManager::registerAction(action, "Help.ReportBug");
ActionManager::actionContainer(Core::Constants::M_HELP)->addAction(cmd, Core::Constants::G_HELP_SUPPORT); ActionManager::actionContainer(Core::Constants::M_HELP)->addAction(cmd, Core::Constants::G_HELP_SUPPORT);
connect(action, &QAction::triggered, this, [] { connect(action, &QAction::triggered, this, [isDesigner] {
QDesktopServices::openUrl(QUrl("https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512")); const QUrl bugreportUrl = isDesigner ? QString("https://bugreports.qt.io/secure/CreateIssue.jspa?pid=11740") //QDS
: QString("https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512"); //QtC
QDesktopServices::openUrl(bugreportUrl);
}); });
action = new QAction(HelpPlugin::tr("System Information..."), this); action = new QAction(HelpPlugin::tr("System Information..."), this);