Theme: Allow compile with Xcode 8

Amends c79f436e2a.

Change-Id: I0c0def4f08412d0ede71c58b8b5a820ea5f902a1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Christian Stenger
2018-08-27 08:28:41 +02:00
parent 3b2a7c0b52
commit 4538227cb1

View File

@@ -40,7 +40,11 @@ namespace Internal {
void forceMacOSLightAquaApperance() void forceMacOSLightAquaApperance()
{ {
#if __has_builtin(__builtin_available)
if (__builtin_available(macOS 10.14, *)) if (__builtin_available(macOS 10.14, *))
#else // Xcode 8
if (QOperatingSystemVersion::current() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 10, 14, 0))
#endif
NSApp.appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua]; NSApp.appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua];
} }