mirror of
https://github.com/overte-org/overte.git
synced 2025-06-14 04:32:13 +02:00
Remove script -> qt::webchannel dependency
This commit is contained in:
parent
46a4a469e9
commit
05b7fcc957
3 changed files with 2 additions and 4 deletions
|
@ -4183,6 +4183,7 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri
|
||||||
LocationScriptingInterface::locationSetter);
|
LocationScriptingInterface::locationSetter);
|
||||||
|
|
||||||
scriptEngine->registerFunction("WebWindow", WebWindowClass::constructor, 1);
|
scriptEngine->registerFunction("WebWindow", WebWindowClass::constructor, 1);
|
||||||
|
scriptEngine->registerFunction("OverlayWebWindow", QmlWebWindowClass::constructor);
|
||||||
|
|
||||||
scriptEngine->registerGlobalObject("Menu", MenuScriptingInterface::getInstance());
|
scriptEngine->registerGlobalObject("Menu", MenuScriptingInterface::getInstance());
|
||||||
scriptEngine->registerGlobalObject("Stats", Stats::getInstance());
|
scriptEngine->registerGlobalObject("Stats", Stats::getInstance());
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
set(TARGET_NAME script-engine)
|
set(TARGET_NAME script-engine)
|
||||||
setup_hifi_library(Gui Network Script WebSockets Widgets)
|
setup_hifi_library(Gui Network Script WebSockets Widgets)
|
||||||
link_hifi_libraries(shared networking ui octree gpu procedural model model-networking recording avatars fbx entities controllers animation audio physics)
|
link_hifi_libraries(shared networking octree gpu procedural model model-networking recording avatars fbx entities controllers animation audio physics)
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
#include <udt/PacketHeaders.h>
|
#include <udt/PacketHeaders.h>
|
||||||
#include <UUID.h>
|
#include <UUID.h>
|
||||||
|
|
||||||
#include <QmlWebWindowClass.h>
|
|
||||||
#include <controllers/ScriptingInterface.h>
|
#include <controllers/ScriptingInterface.h>
|
||||||
#include <AnimationObject.h>
|
#include <AnimationObject.h>
|
||||||
|
|
||||||
|
@ -351,8 +350,6 @@ void ScriptEngine::init() {
|
||||||
qScriptRegisterSequenceMetaType<QVector<glm::quat> >(this);
|
qScriptRegisterSequenceMetaType<QVector<glm::quat> >(this);
|
||||||
qScriptRegisterSequenceMetaType<QVector<QString> >(this);
|
qScriptRegisterSequenceMetaType<QVector<QString> >(this);
|
||||||
|
|
||||||
|
|
||||||
registerFunction("OverlayWebWindow", QmlWebWindowClass::constructor);
|
|
||||||
QScriptValue xmlHttpRequestConstructorValue = newFunction(XMLHttpRequestClass::constructor);
|
QScriptValue xmlHttpRequestConstructorValue = newFunction(XMLHttpRequestClass::constructor);
|
||||||
globalObject().setProperty("XMLHttpRequest", xmlHttpRequestConstructorValue);
|
globalObject().setProperty("XMLHttpRequest", xmlHttpRequestConstructorValue);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue