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
4//4//
5// Created by Thijs Wenker on 2018-06-255// 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.html10// 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#endif37#endif
37 38
39STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){
40 auto scriptEngine = manager->engine().get();
41
42 registerInteractiveWindowMetaType(scriptEngine);
43});
44
38static auto CONTENT_WINDOW_QML = QUrl("InteractiveWindow.qml");45static auto CONTENT_WINDOW_QML = QUrl("InteractiveWindow.qml");
39 46
40static const char* const ADDITIONAL_FLAGS_PROPERTY = "additionalFlags";47static 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