History

Add basic implementation of customPrompt

Still missing the warning and diabling of dynamic checkbox when the static mesh is selected.

Zander Otavka committed 10 years ago

Commit 71f62c01 parent 6417bb17 files · +336 −7Browse files

Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Application.cpp+1−0
@@ -4710,6 +4710,7 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri · 4709 unmodified lines
47104710 scriptEngine->registerGlobalObject("Toolbars", DependencyManager::get<ToolbarScriptingInterface>().data());
47114711
47124712 scriptEngine->registerGlobalObject("Window", DependencyManager::get<WindowScriptingInterface>().data());
4713+ qScriptRegisterMetaType(scriptEngine, CustomPromptResultToScriptValue, CustomPromptResultFromScriptValue);
47134714 scriptEngine->registerGetterSetter("location", LocationScriptingInterface::locationGetter,
47144715 LocationScriptingInterface::locationSetter, "Window");
47154716 // register `location` on the global object.