diff options
| author | Tobias Hunger <tobias.hunger@digia.com> | 2014-09-16 16:02:22 +0200 |
|---|---|---|
| committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-09-18 14:38:30 +0200 |
| commit | 57cc2727703090f64237705a9d5ce2ec10b705cd (patch) | |
| tree | 50e20bc88aa4ada23cbe432994b16664c4b4db1b /src/plugins/cpptools/cpptoolsplugin.cpp | |
| parent | f5d48bf39e928d643509a3c7653a54019db9bdc5 (diff) | |
| download | qt-creator-57cc2727703090f64237705a9d5ce2ec10b705cd.tar.gz | |
CppTools: Add some methods to the JsExpander.
Make some C++ related methods available to the JsExpander. These
are concerned with namespace handling, etc.
Change-Id: I2fc3807cf421b817bb103b727606a78aee290652
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
| -rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index c788e17ab8..427e1a7bb7 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -38,6 +38,7 @@ #include "cppmodelmanager.h" #include "cpplocatorfilter.h" #include "symbolsfindfilter.h" +#include "cpptoolsjsextension.h" #include "cpptoolssettings.h" #include "cpptoolsreuse.h" #include "cppprojectfile.h" @@ -48,6 +49,7 @@ #include <coreplugin/coreconstants.h> #include <coreplugin/documentmanager.h> #include <coreplugin/icore.h> +#include <coreplugin/jsexpander.h> #include <coreplugin/variablemanager.h> #include <coreplugin/vcsmanager.h> #include <cppeditor/cppeditorconstants.h> @@ -144,6 +146,8 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error) modelManager->updateSourceFiles(files.toSet()); }); + JsExpander::registerQObjectForJs(QLatin1String("Cpp"), new CppToolsJsExtension(this)); + CppLocatorData *locatorData = new CppLocatorData; connect(modelManager, SIGNAL(documentUpdated(CPlusPlus::Document::Ptr)), locatorData, SLOT(onDocumentUpdated(CPlusPlus::Document::Ptr))); |
