summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-01-18 18:00:44 +0100
committerLiang Qi <liang.qi@qt.io>2018-01-18 21:24:44 +0100
commitb274a83bf4f44d0e2642a8e3bd6bada4ccdbf83c (patch)
tree4c9e0c783d7698c3673cc5fc8c5c283f3bb80eb5 /examples
parente0ef4fbc2e70622c25692262972b0dc2396af4ef (diff)
parent8cece5f6e09010de4bebd1a2ef524e2ca55d8a5b (diff)
Merge remote-tracking branch 'origin/5.9' into 5.10
Conflicts: .qmake.conf Change-Id: I6d2140aa8692bc7ce56f4366275fd02d008900f0
Diffstat (limited to 'examples')
-rw-r--r--examples/bluetooth/heartrate-game/connectionhandler.cpp3
-rw-r--r--examples/bluetooth/heartrate-server/heartrate-server.pro2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/bluetooth/heartrate-game/connectionhandler.cpp b/examples/bluetooth/heartrate-game/connectionhandler.cpp
index 5ab85c85..3388c0a8 100644
--- a/examples/bluetooth/heartrate-game/connectionhandler.cpp
+++ b/examples/bluetooth/heartrate-game/connectionhandler.cpp
@@ -51,6 +51,7 @@
#include "heartrate-global.h"
#include "connectionhandler.h"
#include <QtBluetooth/qtbluetooth-config.h>
+#include <QtCore/qsystemdetection.h>
ConnectionHandler::ConnectionHandler(QObject *parent) : QObject(parent)
{
@@ -60,7 +61,7 @@ ConnectionHandler::ConnectionHandler(QObject *parent) : QObject(parent)
bool ConnectionHandler::alive() const
{
-#ifdef SIMULATOR
+#if defined(SIMULATOR) || defined(QT_PLATFORM_UIKIT)
return true;
#else
return m_localDevice.isValid() && m_localDevice.hostMode() != QBluetoothLocalDevice::HostPoweredOff;
diff --git a/examples/bluetooth/heartrate-server/heartrate-server.pro b/examples/bluetooth/heartrate-server/heartrate-server.pro
index 4ccf486c..edd011b9 100644
--- a/examples/bluetooth/heartrate-server/heartrate-server.pro
+++ b/examples/bluetooth/heartrate-server/heartrate-server.pro
@@ -1,7 +1,7 @@
TEMPLATE = app
TARGET = heartrate-server
-QT += bluetooth
+QT = core bluetooth
CONFIG += c++11
SOURCES += main.cpp