Commit ac6e4a13 authored by Alessandro Portale's avatar Alessandro Portale

PluginManager: add Windows 8 and 10 to getPlatformName()

Change-Id: Id2ff33784f98529c293b770f11340ae27fbe3ab7
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent cfd69678
......@@ -1658,11 +1658,17 @@ static inline QString getPlatformName()
case QSysInfo::WV_WINDOWS7:
result += QLatin1String(" 7");
break;
case QSysInfo::WV_WINDOWS8:
result += QLatin1String(" 8");
break;
case QSysInfo::WV_WINDOWS8_1:
result += QLatin1String(" 8.1");
break;
default:
break;
}
if (QSysInfo::WindowsVersion >= QSysInfo::WV_WINDOWS8)
result += QLatin1String(" 8");
if (QSysInfo::WindowsVersion >= QSysInfo::WV_WINDOWS10)
result += QLatin1String(" 10");
return result;
#endif // Q_OS_WIN
return QLatin1String("Unknown");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment