refs #661, default value for enabled simulators

This commit is contained in:
Klaus Basan
2016-05-24 23:47:34 +02:00
parent 0aa916f057
commit 988251b079
3 changed files with 39 additions and 3 deletions

View File

@@ -65,6 +65,17 @@ namespace BlackConfig
#endif
}
bool CBuildConfig::isRunningOnWindows10()
{
#ifdef Q_OS_WIN
// QSysInfo::WindowsVersion only available on Win platforms
if (!isRunningOnWindowsNtPlatform()) { return false; }
return (QSysInfo::WindowsVersion == QSysInfo::WV_10_0);
#else
return false;
#endif
}
bool CBuildConfig::isRunningOnMacOSXPlatform()
{
#ifdef Q_OS_OSX

View File

@@ -72,6 +72,9 @@ namespace BlackConfig
//! Running on Windows NT platform?
static bool isRunningOnWindowsNtPlatform();
//! Windows 10
static bool isRunningOnWindows10();
//! Running on Mac OS X platform?
static bool isRunningOnMacOSXPlatform();