QTfrontend/ui/widget/feedbackdialog.cpp
changeset 8874 8121ce2b0a88
parent 8871 62468a2a4cdf
child 8924 13ac59499066
equal deleted inserted replaced
8871:62468a2a4cdf 8874:8121ce2b0a88
   244     MEMORYSTATUSEX status;
   244     MEMORYSTATUSEX status;
   245     status.dwLength = sizeof(status);
   245     status.dwLength = sizeof(status);
   246     GlobalMemoryStatusEx(&status);
   246     GlobalMemoryStatusEx(&status);
   247     total_ram += QString::number(status.ullTotalPhys/1024/1024) + " MB\n";
   247     total_ram += QString::number(status.ullTotalPhys/1024/1024) + " MB\n";
   248 
   248 
   249     switch(QSysInfo::WinVersion())
   249     switch(QSysInfo::windowsVersion())
   250     {
   250     {
       
   251         case QSysInfo::WV_NT: os_version += "Windows NT\n"; break;
   251         case QSysInfo::WV_2000: os_version += "Windows 2000\n"; break;
   252         case QSysInfo::WV_2000: os_version += "Windows 2000\n"; break;
   252         case QSysInfo::WV_XP: os_version += "Windows XP\n"; break;
   253         case QSysInfo::WV_XP: os_version += "Windows XP\n"; break;
       
   254         case QSysInfo::WV_2003: os_version += "Windows Server 2003\n"; break;
   253         case QSysInfo::WV_VISTA: os_version += "Windows Vista\n"; break;
   255         case QSysInfo::WV_VISTA: os_version += "Windows Vista\n"; break;
   254         case QSysInfo::WV_WINDOWS7: os_version += "Windows 7\n"; break;
   256         case QSysInfo::WV_WINDOWS7: os_version += "Windows 7\n"; break;
   255         //case QSysInfo::WV_WINDOWS8: os_version += "Windows 8\n"; break; //QT 5+
   257         //case QSysInfo::WV_WINDOWS8: os_version += "Windows 8\n"; break; //QT 5+
   256         default: os_version += "Windows (Unknown version)\n"; break;
   258         default: os_version += "Windows (Unknown version)\n"; break;
   257     }
   259     }