Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
9aaf2ec8
Commit
9aaf2ec8
authored
Mar 04, 2010
by
kh1
Browse files
Remove the register call for the qml file, I put it into help module.
parent
0521722b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmljseditorplugin.cpp
View file @
9aaf2ec8
...
...
@@ -51,7 +51,6 @@
#include
<texteditor/textfilewizard.h>
#include
<texteditor/texteditoractionhandler.h>
#include
<texteditor/completionsupport.h>
#include
<help/helpmanager.h>
#include
<utils/qtcassert.h>
#include
<QtCore/QtPlugin>
...
...
@@ -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
<
Help
::
HelpManager
>
();
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment