diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2023-03-27 11:46:33 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-03-28 14:44:16 +0200 |
commit | a1f43b9dcd722527d52ceb0c7a138bd2994c1a7b (patch) | |
tree | 827d2ee2e5e3a1edaec5b8ce7c4089d45ac3163b /examples/bluetooth/heartrate-game/connectionhandler.h | |
parent | 6f155ca7df89c649e178dac57f69574290cb516b (diff) | |
download | qtconnectivity-a1f43b9dcd722527d52ceb0c7a138bd2994c1a7b.tar.gz |
HeartRate Game example: general clean-up
C++ code cleanup:
* Fix include headers
* Minor code-style improvements
* Silence the warning about an uncreatable type by explicitly using
QML_UNCREATABLE. We do not create the type in QML anyway.
* Do not limit Windows platform to simulator mode. The example works
perfectly on Windows.
Build-system improvements:
* Use qt_standard_project_setup() and PRIVATE linking in CMake
Docs:
* Add Connectivity category
* Link to the documentation page which gives a full example overview
Task-number: QTBUG-111972
Fixes: QTBUG-112194
Pick-to: 6.5 6.5.0
Change-Id: I6e50d1a3e9219afbf010d6471e8f7eb802c2ef00
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate-game/connectionhandler.h')
-rw-r--r-- | examples/bluetooth/heartrate-game/connectionhandler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/bluetooth/heartrate-game/connectionhandler.h b/examples/bluetooth/heartrate-game/connectionhandler.h index 052def9f..eea1036c 100644 --- a/examples/bluetooth/heartrate-game/connectionhandler.h +++ b/examples/bluetooth/heartrate-game/connectionhandler.h @@ -4,11 +4,11 @@ #ifndef CONNECTIONHANDLER_H #define CONNECTIONHANDLER_H -#include <QBluetoothLocalDevice> +#include <QtBluetooth/qbluetoothlocaldevice.h> -#include <qqml.h> +#include <QtCore/qobject.h> -#include <QObject> +#include <QtQmlIntegration/qqmlintegration.h> class ConnectionHandler : public QObject { |