1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Windows: Detect new Windows versions

This commit is contained in:
David Rosca 2016-06-14 13:15:28 +02:00
parent cfe49a5719
commit d9202d1286

View File

@ -920,15 +920,19 @@ QString QzTools::operatingSystem()
str.append(" 7");
break;
default:
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
case QSysInfo::WV_WINDOWS8:
str.append(" 8");
break;
if (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 2) {
str.append(" 8");
}
case QSysInfo::WV_WINDOWS8_1:
str.append(" 8.1");
break;
case QSysInfo::WV_WINDOWS10:
str.append(" 10");
break;
default:
break;
}