From 195045a4ec8a29c11ef65a1cecf433bcca756c98 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 14 Oct 2015 17:20:30 -0700 Subject: [PATCH] Next time remember to hit build all before commiting --- tests/controllers/src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/controllers/src/main.cpp b/tests/controllers/src/main.cpp index 3a45195439..2056e34551 100644 --- a/tests/controllers/src/main.cpp +++ b/tests/controllers/src/main.cpp @@ -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();