mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Next time remember to hit build all before commiting
This commit is contained in:
parent
10df0f2d8c
commit
195045a4ec
1 changed files with 7 additions and 1 deletions
|
@ -79,6 +79,12 @@ public:
|
|||
virtual const DisplayPlugin* getActiveDisplayPlugin() const override { return nullptr; }
|
||||
};
|
||||
|
||||
class MyControllerScriptingInterface : public controller::ScriptingInterface {
|
||||
public:
|
||||
virtual void registerControllerTypes(QScriptEngine* engine) {};
|
||||
};
|
||||
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
QGuiApplication app(argc, argv);
|
||||
QQmlApplicationEngine engine;
|
||||
|
@ -116,7 +122,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
//new PluginContainerProxy();
|
||||
auto rootContext = engine.rootContext();
|
||||
rootContext->setContextProperty("Controllers", new ScriptingInterface());
|
||||
rootContext->setContextProperty("Controllers", new MyControllerScriptingInterface());
|
||||
}
|
||||
engine.load(getQmlDir() + "main.qml");
|
||||
app.exec();
|
||||
|
|
Loading…
Reference in a new issue