summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate-game/devicehandler.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-08-12 11:48:12 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-15 13:31:55 +0000
commitc7cdadd88414e1de22bd1aa5b1748c2eef5bfa27 (patch)
tree6abddf14dde830c3d96e94ec0aa5b11fcaf410ed /examples/bluetooth/heartrate-game/devicehandler.cpp
parent0a4112424a51f995a388391108f593ab1517f3bf (diff)
Bluetooth heartrate-game example: Basic polish
- Reorder includes by module - Reorder Q_OBJECT macros - Use member initialization - Update copyright year - Remove QML import versions Change-Id: I00a817c07bf50efcb9fed60372c374d34d138640 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit 4c3d8adc17cdbe80a3eb65727997a4b7db426b3f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/bluetooth/heartrate-game/devicehandler.cpp')
-rw-r--r--examples/bluetooth/heartrate-game/devicehandler.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/bluetooth/heartrate-game/devicehandler.cpp b/examples/bluetooth/heartrate-game/devicehandler.cpp
index 2ddb2310..bbf4e1df 100644
--- a/examples/bluetooth/heartrate-game/devicehandler.cpp
+++ b/examples/bluetooth/heartrate-game/devicehandler.cpp
@@ -1,18 +1,15 @@
-// Copyright (C) 2017 The Qt Company Ltd.
+// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "heartrate-global.h"
#include "devicehandler.h"
#include "deviceinfo.h"
+
#include <QtEndian>
#include <QRandomGenerator>
DeviceHandler::DeviceHandler(QObject *parent) :
- BluetoothBaseClass(parent),
- m_foundHeartRateService(false),
- m_measuring(false),
- m_currentValue(0),
- m_min(0), m_max(0), m_sum(0), m_avg(0), m_calories(0)
+ BluetoothBaseClass(parent)
{
#ifdef SIMULATOR
m_demoTimer.setSingleShot(false);