NOISSUE ifdef out unknown Apple system versions in analytics

This commit is contained in:
Petr Mrázek 2016-11-21 01:30:39 +01:00
parent 905bc2e440
commit ad25c89ac4

View File

@ -42,9 +42,11 @@ QString Sys::getSystemInfo()
case QSysInfo::MV_10_10: case QSysInfo::MV_10_10:
os = "Macintosh; Mac OS 10.10"; os = "Macintosh; Mac OS 10.10";
break; break;
#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0))
case QSysInfo::MV_10_11: case QSysInfo::MV_10_11:
os = "Macintosh; Mac OS 10.11"; os = "Macintosh; Mac OS 10.11";
break; break;
#endif
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
case QSysInfo::MV_10_12: case QSysInfo::MV_10_12:
os = "Macintosh; Mac OS 10.12"; os = "Macintosh; Mac OS 10.12";
@ -74,6 +76,7 @@ QString Sys::getSystemInfo()
case QSysInfo::MV_IOS_8_0: case QSysInfo::MV_IOS_8_0:
os = "iPhone; iOS 8.0"; os = "iPhone; iOS 8.0";
break; break;
#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0))
case QSysInfo::MV_IOS_8_1: case QSysInfo::MV_IOS_8_1:
os = "iPhone; iOS 8.1"; os = "iPhone; iOS 8.1";
break; break;
@ -89,6 +92,7 @@ QString Sys::getSystemInfo()
case QSysInfo::MV_IOS_9_0: case QSysInfo::MV_IOS_9_0:
os = "iPhone; iOS 9.0"; os = "iPhone; iOS 9.0";
break; break;
#endif
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
case QSysInfo::MV_IOS_9_1: case QSysInfo::MV_IOS_9_1:
os = "iPhone; iOS 9.1"; os = "iPhone; iOS 9.1";