Fix Qt-in-namespace build breakage.

Objective-C classes must be forward declared in the
global namespace.

Change-Id: Ic4818cef4b61f1578c478da9c30b77237262b283
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
bb10
Morten Johan Sørvig 2015-06-12 10:12:01 +02:00
parent 0ff3bbe293
commit 55df2e54a5
1 changed files with 2 additions and 0 deletions

View File

@ -585,7 +585,9 @@ Q_DECL_CONSTEXPR inline const T &qBound(const T &min, const T &val, const T &max
# define QT_OSX_DEPLOYMENT_TARGET_BELOW(osx) \
QT_MAC_DEPLOYMENT_TARGET_BELOW(osx, __IPHONE_NA)
QT_END_NAMESPACE
Q_FORWARD_DECLARE_OBJC_CLASS(NSAutoreleasePool);
QT_BEGIN_NAMESPACE
// Implemented in qcore_mac_objc.mm
class Q_CORE_EXPORT QMacAutoReleasePool