Showing the changes to interface/src/ui/InteractiveWindow.cpp (1 of 34 files). Show all
Unified · Split
| @@ -4,6 +4,7 @@ · 3 unmodified lines | |||
| 4 | // | 4 | // |
| 5 | // Created by Thijs Wenker on 2018-06-25 | 5 | // Created by Thijs Wenker on 2018-06-25 |
| 6 | // Copyright 2018 High Fidelity, Inc. | 6 | // Copyright 2018 High Fidelity, Inc. |
| 7 | // Copyright 2022 Overte e.V. | ||
| 7 | // | 8 | // |
| 8 | // Distributed under the Apache License, Version 2.0. | 9 | // Distributed under the Apache License, Version 2.0. |
| 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | 10 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| @@ -35,6 +36,12 @@ · 25 unmodified lines | |||
| 35 | #include <WinUser.h> | 36 | #include <WinUser.h> |
| 36 | #endif | 37 | #endif |
| 37 | 38 | ||
| 39 | STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){ | ||
| 40 | auto scriptEngine = manager->engine().get(); | ||
| 41 | |||
| 42 | registerInteractiveWindowMetaType(scriptEngine); | ||
| 43 | }); | ||
| 44 | |||
| 38 | static auto CONTENT_WINDOW_QML = QUrl("InteractiveWindow.qml"); | 45 | static auto CONTENT_WINDOW_QML = QUrl("InteractiveWindow.qml"); |
| 39 | 46 | ||
| 40 | static const char* const ADDITIONAL_FLAGS_PROPERTY = "additionalFlags"; | 47 | static const char* const ADDITIONAL_FLAGS_PROPERTY = "additionalFlags"; |