From 9aaf2ec84ca2515f499543b150aff3f552b773ab Mon Sep 17 00:00:00 2001 From: kh1 Date: Thu, 4 Mar 2010 18:45:38 +0100 Subject: [PATCH] Remove the register call for the qml file, I put it into help module. --- src/plugins/qmljseditor/qmljseditorplugin.cpp | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/plugins/qmljseditor/qmljseditorplugin.cpp b/src/plugins/qmljseditor/qmljseditorplugin.cpp index 34684c95ade..418252c99aa 100644 --- a/src/plugins/qmljseditor/qmljseditorplugin.cpp +++ b/src/plugins/qmljseditor/qmljseditorplugin.cpp @@ -51,7 +51,6 @@ #include #include #include -#include #include #include @@ -151,27 +150,6 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e void QmlJSEditorPlugin::extensionsInitialized() { - // - // Explicitly register qml.qch if located in creator directory. - // - // This is only needed for the creator-qml package, were we - // want to ship the documentation without a qt development version. - // - - ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance(); - Help::HelpManager *helpManager = pluginManager->getObject(); - - Q_ASSERT(helpManager); - - const QString qmlHelpFile = - QDir::cleanPath(QCoreApplication::applicationDirPath() -#if defined(Q_OS_MAC) - + QLatin1String("/../Resources/doc/qml.qch")); -#else - + QLatin1String("../../share/doc/qtcreator/qml.qch")); -#endif - - helpManager->registerDocumentation(QStringList(qmlHelpFile)); } void QmlJSEditorPlugin::initializeEditor(QmlJSEditor::Internal::QmlJSTextEditor *editor)