Fix QCFSocketNotifier in namespaced Qt builds

Without QT_BEGIN/END_NAMESPACE, the qt_mac_socket_callback is not resolved as
a friend function of QCFSocketNotifier, which is required due to access to
private members of QCFSocketNotifier.

Change-Id: Ief89e18f8b4f7fc4cb013a33959db1dd90eb9efe
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
bb10
Tim Blechmann 2015-10-16 10:35:07 +02:00 committed by Tor Arne Vestbø
parent 75efe9a0f3
commit 14709d097f
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@
#include <QtCore/qsocketnotifier.h>
#include <QtCore/qthread.h>
QT_BEGIN_NAMESPACE
/**************************************************************************
Socket Notifiers
@ -301,3 +302,6 @@ void QCFSocketNotifier::enableSocketNotifiers(CFRunLoopObserverRef ref, CFRunLoo
}
}
}
QT_END_NAMESPACE