forked from qt-creator/qt-creator
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:
@@ -40,7 +40,11 @@ namespace Internal {
|
||||
|
||||
void forceMacOSLightAquaApperance()
|
||||
{
|
||||
#if __has_builtin(__builtin_available)
|
||||
if (__builtin_available(macOS 10.14, *))
|
||||
#else // Xcode 8
|
||||
if (QOperatingSystemVersion::current() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 10, 14, 0))
|
||||
#endif
|
||||
NSApp.appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user