Qt Designer: Fix help URLs.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Tue, 4 Dec 2012 15:02:19 +0000 (16:02 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 4 Dec 2012 17:49:51 +0000 (18:49 +0100)
- Fix building of URLs.
- Correct URLs of manual and style sheet manuals
- Remove the 'What's new' option.

Task-number: QTBUG-28373
Change-Id: I4d1dfd6154f799e9bb00c0a75aa62a7239b0f81f
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: hjk <qthjk@ovi.com>
src/designer/src/designer/assistantclient.cpp
src/designer/src/designer/qdesigner_actions.cpp
src/designer/src/designer/qdesigner_actions.h
src/designer/src/lib/shared/stylesheeteditor.cpp

index d036eff..cdde599 100644 (file)
@@ -151,14 +151,14 @@ bool AssistantClient::ensureRunning(QString *errorMessage)
     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;
 }
 
index 9f77132..d33343c 100644 (file)
@@ -456,11 +456,6 @@ QActionGroup *QDesignerActions::createHelpActions()
     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));
@@ -1049,14 +1044,7 @@ QAction *QDesignerActions::minimizeAction() const
 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);
 }
 
index 2d060c2..d4d6a6c 100644 (file)
@@ -139,7 +139,6 @@ private slots:
     void clearRecentFiles();
     void closeForm();
     void showDesignerHelp();
-    void showWhatsNew();
     void aboutDesigner();
     void showWidgetSpecificHelp();
     void backupForms();
index 1679bf9..fb89ed3 100644 (file)
@@ -331,7 +331,7 @@ void StyleSheetEditorDialog::insertCssProperty(const QString &name, const QStrin
 
 void StyleSheetEditorDialog::slotRequestHelp()
 {
-    m_core->integration()->emitHelpRequested(QStringLiteral("qt"),
+    m_core->integration()->emitHelpRequested(QStringLiteral("qtwidgets"),
                                              QStringLiteral("stylesheet-reference.html"));
 }