Commit 3330d159 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Qt Designer integration: Fix Help button in stylesheet editor.

Wire QDesignerIntegration's help signal to help manager.

Task-number: QTCREATORBUG-1505
Reviewed-by: default avatarkh <>
parent 76020b61
......@@ -281,6 +281,15 @@ void FormEditorW::fullInit()
m_integration = new QtCreatorIntegration(m_formeditor, this);
// Connect Qt Designer help request to HelpManager.
// TODO: Use Core::HelpManager once it has been introduced.
foreach(QObject *object, ExtensionSystem::PluginManager::instance()->allObjects()) {
if (!qstrcmp(object->metaObject()->className(), "Help::HelpManager")) {
connect(m_integration, SIGNAL(creatorHelpRequested(QString)),
object, SLOT(handleHelpRequest(QString)));
* This will initialize our TabOrder, Signals and slots and Buddy editors.
......@@ -94,6 +94,14 @@ QtCreatorIntegration::QtCreatorIntegration(QDesignerFormEditorInterface *core, F
connect(this, SIGNAL(navigateToSlot(QString, QString, QStringList)),
this, SLOT(slotNavigateToSlot(QString, QString, QStringList)));
connect(this, SIGNAL(helpRequested(QString,QString)),
this, SLOT(slotDesignerHelpRequested(QString,QString)));
void QtCreatorIntegration::slotDesignerHelpRequested(const QString &manual, const QString &document)
// Pass on as URL.
emit creatorHelpRequested(QString::fromLatin1("qthelp://com.trolltech.%1/qdoc/%2").arg(manual, document));
void QtCreatorIntegration::updateSelection()
......@@ -46,12 +46,18 @@ public:
QWidget *containerWindow(QWidget *widget) const;
bool supportsToSlotNavigation() { return true; };
bool supportsToSlotNavigation() { return true; }
void creatorHelpRequested(const QString &url);
public slots:
void updateSelection();
private slots:
void slotNavigateToSlot(const QString &objectName, const QString &signalSignature, const QStringList &parameterNames);
void slotDesignerHelpRequested(const QString &manual, const QString &document);
bool navigateToSlot(const QString &objectName,
const QString &signalSignature,
......@@ -57,8 +57,6 @@ public:
void setupGuiHelpEngine();
bool guiEngineNeedsUpdate() const;
void handleHelpRequest(const QString &url);
void verifyDocumenation();
void registerDocumentation(const QStringList &fileNames);
void unregisterDocumentation(const QStringList &nameSpaces);
......@@ -69,6 +67,9 @@ public:
static BookmarkManager& bookmarkManager();
public slots:
void handleHelpRequest(const QString &url);
void helpRequested(const QUrl &url);
Supports Markdown
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