History

Type registeration fixes for scripting engine

ksuprynowicz committed 4 years ago

Commit 0a3ec921 parent 50a6a6334 files · +266 −67Browse files

Showing the changes to interface/src/ui/InteractiveWindow.cpp (1 of 34 files). Show all

Unified · Split

interface/src/ui/InteractiveWindow.cpp+7−0
@@ -4,6 +4,7 @@ · 3 unmodified lines
44 //
55 // Created by Thijs Wenker on 2018-06-25
66 // Copyright 2018 High Fidelity, Inc.
7+// Copyright 2022 Overte e.V.
78 //
89 // Distributed under the Apache License, Version 2.0.
910 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@@ -35,6 +36,12 @@ · 25 unmodified lines
3536 #include <WinUser.h>
3637 #endif
3738
39+STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){
40+ auto scriptEngine = manager->engine().get();
41+
42+ registerInteractiveWindowMetaType(scriptEngine);
43+});
44+
3845 static auto CONTENT_WINDOW_QML = QUrl("InteractiveWindow.qml");
3946
4047 static const char* const ADDITIONAL_FLAGS_PROPERTY = "additionalFlags";

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t