summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2015-12-30 12:00:08 +0000
committerMike Krus <mike.krus@kdab.com>2016-01-05 08:27:10 +0000
commit2c1d2691e853812a06d435ffcf61e17f82edb224 (patch)
treea0162b1ac45d2a741aa163d952b13f21d646741d /src
parent69b60f0f92c6d92e619d20caa98cdfb20766821d (diff)
tvOS support
Builds but not tested Moved Q_DECLARE_METATYPE outside of namespace to fix namespaced builds Change-Id: I19c1dba904da8fad155f0f612b863e8f5e0c422e Reviewed-by: James Turner <james.turner@kdab.com> Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/bluetooth.pro3
-rw-r--r--src/bluetooth/osx/osxbtcentralmanager.mm4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/bluetooth/bluetooth.pro b/src/bluetooth/bluetooth.pro
index 6cf0795c..67a001d2 100644
--- a/src/bluetooth/bluetooth.pro
+++ b/src/bluetooth/bluetooth.pro
@@ -154,7 +154,7 @@ config_bluez:qtHaveModule(dbus) {
SOURCES -= qlowenergyservice.cpp
SOURCES -= qlowenergycontroller.cpp
SOURCES -= qlowenergycontroller_p.cpp
-} else:ios {
+} else:ios|tvos {
DEFINES += QT_IOS_BLUETOOTH
LIBS += -framework Foundation -framework CoreBluetooth
@@ -197,4 +197,3 @@ config_bluez:qtHaveModule(dbus) {
OTHER_FILES +=
HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS
-
diff --git a/src/bluetooth/osx/osxbtcentralmanager.mm b/src/bluetooth/osx/osxbtcentralmanager.mm
index 2f881f79..e197a78c 100644
--- a/src/bluetooth/osx/osxbtcentralmanager.mm
+++ b/src/bluetooth/osx/osxbtcentralmanager.mm
@@ -43,12 +43,13 @@
#include <algorithm>
#include <limits>
-QT_BEGIN_NAMESPACE
Q_DECLARE_METATYPE(QLowEnergyCharacteristic)
Q_DECLARE_METATYPE(QLowEnergyDescriptor)
Q_DECLARE_METATYPE(QLowEnergyHandle)
+QT_BEGIN_NAMESPACE
+
namespace OSXBluetooth {
NSUInteger qt_countGATTEntries(CBService *service)
@@ -80,7 +81,6 @@ NSUInteger qt_countGATTEntries(CBService *service)
QT_END_NAMESPACE
-QT_USE_NAMESPACE
@interface QT_MANGLE_NAMESPACE(OSXBTCentralManager) (PrivateAPI)