comparison main.cpp @ 13:facf83163013

Fix product version vor Mac (thanks to algo)
author Ideenmodellierer
date Mon, 12 Jan 2026 18:45:15 +0100
parents 21ce6187d32e
children
comparison
equal deleted inserted replaced
12:ac837fe1d590 13:facf83163013
111 LOG_TRACE(" Windows 10"); break; 111 LOG_TRACE(" Windows 10"); break;
112 default: LOG_TRACE(" Windows " << QString().sprintf("%04X", QSysInfo::windowsVersion()) ); break; 112 default: LOG_TRACE(" Windows " << QString().sprintf("%04X", QSysInfo::windowsVersion()) ); break;
113 } 113 }
114 #endif 114 #endif
115 #elif defined(Q_OS_MACX) 115 #elif defined(Q_OS_MACX)
116 if (QSysInfo::macVersion() < 2) 116 LOG_TRACE(" MacOS " << (QSysInfo::productVersion()));
117 LOG_TRACE(" MacOS 9");
118 else
119 LOG_TRACE(" MacOS 10." << int(QSysInfo::macVersion() - 2));
120 #elif defined(Q_OS_LINUX) 117 #elif defined(Q_OS_LINUX)
121 LOG_TRACE(" Linux "); 118 LOG_TRACE(" Linux ");
122 #else 119 #else
123 #error Unknown OS not yet implemented 120 #error Unknown OS not yet implemented
124 #endif 121 #endif