return true;
}
-QString AssistantClient::documentUrl(const QString &prefix, int qtVersion)
+QString AssistantClient::documentUrl(const QString &module, int qtVersion)
{
if (qtVersion == 0)
qtVersion = QT_VERSION;
QString rc;
- QTextStream(&rc) << QStringLiteral("qthelp://com.trolltech.") << prefix << QLatin1Char('.')
+ QTextStream(&rc) << "qthelp://org.qt-project." << module << '.'
<< (qtVersion >> 16) << ((qtVersion >> 8) & 0xFF) << (qtVersion & 0xFF)
- << QStringLiteral("/qdoc/");
+ << '/' << module << '/';
return rc;
}
connect(widgetHelp, SIGNAL(triggered()), this, SLOT(showWidgetSpecificHelp()));
helpActions->addAction(widgetHelp);
- helpActions->addAction(createSeparator(this));
- QAction *whatsNewAction = new QAction(tr("What's New in Qt Designer?"), this);
- whatsNewAction->setObjectName(QStringLiteral("__qt_whats_new_in_qt_designer_action"));
- connect(whatsNewAction, SIGNAL(triggered()), this, SLOT(showWhatsNew()));
- helpActions->addAction(whatsNewAction);
#endif
helpActions->addAction(createSeparator(this));
void QDesignerActions::showDesignerHelp()
{
QString url = AssistantClient::designerManualUrl();
- url += QStringLiteral("designer-manual.html");
- showHelp(url);
-}
-
-void QDesignerActions::showWhatsNew()
-{
- QString url = AssistantClient::qtReferenceManualUrl();
- url += QStringLiteral("qt4-designer.html");
+ url += QStringLiteral("qtdesigner-index.html");
showHelp(url);
}
void StyleSheetEditorDialog::slotRequestHelp()
{
- m_core->integration()->emitHelpRequested(QStringLiteral("qt"),
+ m_core->integration()->emitHelpRequested(QStringLiteral("qtwidgets"),
QStringLiteral("stylesheet-reference.html"));
}