Use Qt5's prettyProductName to get system info
This commit is contained in:
parent
64d4b38f41
commit
bb079b9508
@ -128,6 +128,9 @@ QString Updater::userAgent()
|
||||
|
||||
QString Updater::sysInfo()
|
||||
{
|
||||
#if QT_VERSION >= 0x050400
|
||||
return QSysInfo::prettyProductName();
|
||||
#else
|
||||
#if defined(Q_OS_WIN32)
|
||||
return QString("Windows/0x%1").arg(QSysInfo::WindowsVersion, 0, 16);
|
||||
#elif defined(Q_OS_LINUX)
|
||||
@ -141,4 +144,5 @@ QString Updater::sysInfo()
|
||||
#else
|
||||
return QString("Unknown");
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user