diff options
Diffstat (limited to 'examples/bluetooth/heartrate-game/main.cpp')
-rw-r--r-- | examples/bluetooth/heartrate-game/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/bluetooth/heartrate-game/main.cpp b/examples/bluetooth/heartrate-game/main.cpp index 039b0668..0b0cae12 100644 --- a/examples/bluetooth/heartrate-game/main.cpp +++ b/examples/bluetooth/heartrate-game/main.cpp @@ -56,6 +56,8 @@ int main(int argc, char *argv[]) DeviceHandler deviceHandler; DeviceFinder deviceFinder(&deviceHandler); + qmlRegisterUncreatableType<DeviceHandler>("Shared", 1, 0, "AddressType", "Enum is not a type"); + QQmlApplicationEngine engine; engine.rootContext()->setContextProperty("connectionHandler", &connectionHandler); engine.rootContext()->setContextProperty("deviceFinder", &deviceFinder); |