summaryrefslogtreecommitdiff
path: root/examples/bluetooth/heartrate-game/devicehandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/heartrate-game/devicehandler.h')
-rw-r--r--examples/bluetooth/heartrate-game/devicehandler.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/bluetooth/heartrate-game/devicehandler.h b/examples/bluetooth/heartrate-game/devicehandler.h
index fd670f43..eb155e5b 100644
--- a/examples/bluetooth/heartrate-game/devicehandler.h
+++ b/examples/bluetooth/heartrate-game/devicehandler.h
@@ -13,7 +13,7 @@
#include <QtCore/qlist.h>
#include <QtCore/qtimer.h>
-#include <QtQmlIntegration/qqmlintegration.h>
+#include <QtQml/qqmlregistration.h>
class DeviceInfo;
@@ -31,8 +31,7 @@ class DeviceHandler : public BluetoothBaseClass
Q_PROPERTY(float calories READ calories NOTIFY statsChanged)
Q_PROPERTY(AddressType addressType READ addressType WRITE setAddressType)
- QML_NAMED_ELEMENT(AddressType)
- QML_UNCREATABLE("Enum is not a type")
+ QML_ELEMENT
public:
enum class AddressType {