mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 23:02:24 +02:00
Use alternative signal/slot mechanism for Android compatibility
This commit is contained in:
parent
b7fdd5bb1f
commit
f02ffe1ed9
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ NetworkSocket::NetworkSocket(QObject* parent, NodeType_t nodeType) :
|
|||
{
|
||||
connect(&_udpSocket, &QUdpSocket::readyRead, this, &NetworkSocket::readyRead);
|
||||
connect(&_udpSocket, &QAbstractSocket::stateChanged, this, &NetworkSocket::onUDPStateChanged);
|
||||
connect(&_udpSocket, &QAbstractSocket::errorOccurred, this, &NetworkSocket::onUDPSocketError);
|
||||
// Use old SIGNAL/SLOT mechanism for Android builds.
|
||||
connect(&_udpSocket, SIGNAL(error(QAbstractSocket::SocketError)),
|
||||
this, SLOT(onUDPSocketError(QAbstractSocket::SocketError)));
|
||||
|
||||
#if defined(WEBRTC_DATA_CHANNELS)
|
||||
connect(&_webrtcSocket, &WebRTCSocket::readyRead, this, &NetworkSocket::readyRead);
|
||||
connect(&_webrtcSocket, &WebRTCSocket::stateChanged, this, &NetworkSocket::onWebRTCStateChanged);
|
||||
|
|
Loading…
Reference in a new issue