fix displaying the right version of windows in system info
authorkoda
Fri, 05 Apr 2013 22:57:31 +0200
changeset 8874 8121ce2b0a88
parent 8871 62468a2a4cdf
child 8876 bd8df772dbe6
fix displaying the right version of windows in system info
QTfrontend/ui/widget/feedbackdialog.cpp
--- a/QTfrontend/ui/widget/feedbackdialog.cpp	Fri Apr 05 22:46:48 2013 +0200
+++ b/QTfrontend/ui/widget/feedbackdialog.cpp	Fri Apr 05 22:57:31 2013 +0200
@@ -246,10 +246,12 @@
     GlobalMemoryStatusEx(&status);
     total_ram += QString::number(status.ullTotalPhys/1024/1024) + " MB\n";
 
-    switch(QSysInfo::WinVersion())
+    switch(QSysInfo::windowsVersion())
     {
+        case QSysInfo::WV_NT: os_version += "Windows NT\n"; break;
         case QSysInfo::WV_2000: os_version += "Windows 2000\n"; break;
         case QSysInfo::WV_XP: os_version += "Windows XP\n"; break;
+        case QSysInfo::WV_2003: os_version += "Windows Server 2003\n"; break;
         case QSysInfo::WV_VISTA: os_version += "Windows Vista\n"; break;
         case QSysInfo::WV_WINDOWS7: os_version += "Windows 7\n"; break;
         //case QSysInfo::WV_WINDOWS8: os_version += "Windows 8\n"; break; //QT 5+