diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-08-12 11:40:32 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-08-16 15:53:00 +0000 |
commit | cf1365c6ec775d46dec60edea0119d231bc0e8fd (patch) | |
tree | d38d07f10968136ae81f77e54d767d5dbaeecb3c /examples/bluetooth/heartrate-game/heartrate-game.pro | |
parent | 86f22034f12614b750797fcf3b526f59d9e53834 (diff) |
Bluetooth heartrate-game example: Use modern QML registration
Use the modern macros and replace setContextProperty().
Change-Id: If83f8a2dfab13e7c1b3dd18048f633c47709a7b3
Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
(cherry picked from commit 94cf544ab0590b9f38fda8875f678ca7dcdb1a7b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/bluetooth/heartrate-game/heartrate-game.pro')
-rw-r--r-- | examples/bluetooth/heartrate-game/heartrate-game.pro | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/bluetooth/heartrate-game/heartrate-game.pro b/examples/bluetooth/heartrate-game/heartrate-game.pro index 02d238ad..f55053b4 100644 --- a/examples/bluetooth/heartrate-game/heartrate-game.pro +++ b/examples/bluetooth/heartrate-game/heartrate-game.pro @@ -4,6 +4,10 @@ TARGET = heartrate-game QT += qml quick bluetooth CONFIG += c++11 +CONFIG += qmltypes +QML_IMPORT_NAME = Shared +QML_IMPORT_MAJOR_VERSION = 1 + HEADERS += \ connectionhandler.h \ deviceinfo.h \ |