summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate-game/connectionhandler.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2017-04-03 12:17:20 +0200
committerAlex Blasche <alexander.blasche@qt.io>2017-04-04 09:02:31 +0000
commit462954b30267e5b22f35caba0e37fb3d02d2c29c (patch)
treef769e66c21fd0f4f52439736fb2a587b82bd1686 /examples/bluetooth/heartrate-game/connectionhandler.cpp
parent283870e39be08e89050377cf2e4584b453cdc4e2 (diff)
Add means to enable simulator build with one easy define
Otherwise it is only enabled on Win32 builds Change-Id: I23ce25411294ebe2dae2272c16789da897b43e82 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate-game/connectionhandler.cpp')
-rw-r--r--examples/bluetooth/heartrate-game/connectionhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/bluetooth/heartrate-game/connectionhandler.cpp b/examples/bluetooth/heartrate-game/connectionhandler.cpp
index 6ca3f1d7..d5084179 100644
--- a/examples/bluetooth/heartrate-game/connectionhandler.cpp
+++ b/examples/bluetooth/heartrate-game/connectionhandler.cpp
@@ -38,6 +38,7 @@
**
****************************************************************************/
+#include "heartrate-global.h"
#include "connectionhandler.h"
#include <QtDebug>
@@ -49,7 +50,7 @@ ConnectionHandler::ConnectionHandler(QObject *parent) : QObject(parent)
bool ConnectionHandler::alive() const
{
-#ifdef Q_OS_WIN32
+#ifdef SIMULATOR
return true;
#else
return m_localDevice.isValid() && m_localDevice.hostMode() != QBluetoothLocalDevice::HostPoweredOff;