Commit c825e647 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #5030 from dogmaphobic/iOS

Disable UVC for iOS builds.
parents fc464312 951a8f0f
...@@ -81,6 +81,7 @@ linux { ...@@ -81,6 +81,7 @@ linux {
DEFINES += __ios__ DEFINES += __ios__
DEFINES += QGC_NO_GOOGLE_MAPS DEFINES += QGC_NO_GOOGLE_MAPS
DEFINES += NO_SERIAL_LINK DEFINES += NO_SERIAL_LINK
DEFINES += QGC_DISABLE_UVC
QMAKE_IOS_DEPLOYMENT_TARGET = 8.0 QMAKE_IOS_DEPLOYMENT_TARGET = 8.0
QMAKE_IOS_TARGETED_DEVICE_FAMILY = 1,2 # Universal QMAKE_IOS_TARGETED_DEVICE_FAMILY = 1,2 # Universal
QMAKE_LFLAGS += -Wl,-no_pie QMAKE_LFLAGS += -Wl,-no_pie
......
...@@ -140,9 +140,6 @@ bool BluetoothLink::_hardwareConnect() ...@@ -140,9 +140,6 @@ bool BluetoothLink::_hardwareConnect()
QObject::connect(_discoveryAgent, &QBluetoothServiceDiscoveryAgent::serviceDiscovered, this, &BluetoothLink::serviceDiscovered); QObject::connect(_discoveryAgent, &QBluetoothServiceDiscoveryAgent::serviceDiscovered, this, &BluetoothLink::serviceDiscovered);
QObject::connect(_discoveryAgent, &QBluetoothServiceDiscoveryAgent::finished, this, &BluetoothLink::discoveryFinished); QObject::connect(_discoveryAgent, &QBluetoothServiceDiscoveryAgent::finished, this, &BluetoothLink::discoveryFinished);
QObject::connect(_discoveryAgent, &QBluetoothServiceDiscoveryAgent::canceled, this, &BluetoothLink::discoveryFinished); QObject::connect(_discoveryAgent, &QBluetoothServiceDiscoveryAgent::canceled, this, &BluetoothLink::discoveryFinished);
QObject::connect(_discoveryAgent, static_cast<void (QBluetoothServiceDiscoveryAgent::*)(QBluetoothSocket::SocketError)>(&QBluetoothServiceDiscoveryAgent::error),
this, &BluetoothLink::discoveryError);
_shutDown = false; _shutDown = false;
_discoveryAgent->start(); _discoveryAgent->start();
#else #else
...@@ -169,14 +166,6 @@ void BluetoothLink::_createSocket() ...@@ -169,14 +166,6 @@ void BluetoothLink::_createSocket()
this, &BluetoothLink::deviceError); this, &BluetoothLink::deviceError);
} }
#ifdef __ios__
void BluetoothLink::discoveryError(QBluetoothServiceDiscoveryAgent::Error error)
{
qDebug() << "Discovery error:" << error;
qDebug() << _discoveryAgent->errorString();
}
#endif
#ifdef __ios__ #ifdef __ios__
void BluetoothLink::serviceDiscovered(const QBluetoothServiceInfo& info) void BluetoothLink::serviceDiscovered(const QBluetoothServiceInfo& info)
{ {
......
...@@ -158,7 +158,6 @@ public slots: ...@@ -158,7 +158,6 @@ public slots:
#ifdef __ios__ #ifdef __ios__
void serviceDiscovered (const QBluetoothServiceInfo &info); void serviceDiscovered (const QBluetoothServiceInfo &info);
void discoveryFinished (); void discoveryFinished ();
void discoveryError (QBluetoothServiceDiscoveryAgent::Error error);
#endif #endif
protected: protected:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment