diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-22 15:22:02 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-22 15:56:57 -0700 |
commit | e893f6bd9db696a1d647b796138233152ca290fa (patch) | |
tree | 32b5fad9d0a958257817fb3d134d53f881ef9127 /subsurfacesysinfo.cpp | |
parent | 438fe5dbde222c73e22441a6e39c85c8c887218b (diff) | |
download | subsurface-e893f6bd9db696a1d647b796138233152ca290fa.tar.gz |
Use the Windows default font on Windows 7 and 8/8.1
It contains the characters we need and will make the application look more
"native".
See #712
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacesysinfo.cpp')
-rw-r--r-- | subsurfacesysinfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subsurfacesysinfo.cpp b/subsurfacesysinfo.cpp index caa9db8a5..4093654ee 100644 --- a/subsurfacesysinfo.cpp +++ b/subsurfacesysinfo.cpp @@ -479,3 +479,11 @@ QString SubsurfaceSysInfo::osArch() #endif return res; } + +extern "C" { +bool isWin7Or8() +{ + QString os = SubsurfaceSysInfo::prettyOsName(); + return os == "Windows 7" || os.startsWith("Windows 8"); +} +} |