diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-27 21:03:14 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-27 16:18:09 -0700 |
commit | d747d76762ad745b510c645706c2dd708fe20302 (patch) | |
tree | e08fef51e339416bac144a77fd7dc690fba700dd /core/windows.c | |
parent | 49fc05de7ebdc3f402b76072a34e3aa53b3b7d4d (diff) | |
download | subsurface-d747d76762ad745b510c645706c2dd708fe20302.tar.gz |
cleanup: refactor subsurfacesysinfo.cpp
This used to be a copy of QSysInfo. However, once the requirement
was raised to Qt5.4, this was replaced by a subclass of the original
QSysInfo - which made the whole file mostly obsolete.
Just use QSysInfo directly where needed.
Only for windows.c, which can't call directly into Qt, keep the
isWin7Or8() helper function.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/windows.c')
-rw-r--r-- | core/windows.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/windows.c b/core/windows.c index 37f4d3a63..b770129c5 100644 --- a/core/windows.c +++ b/core/windows.c @@ -7,6 +7,7 @@ #include "display.h" #include "file.h" #include "errorhelper.h" +#include "subsurfacesysinfo.h" #undef _WIN32_WINNT #define _WIN32_WINNT 0x500 #include <windows.h> @@ -23,8 +24,6 @@ const char current_system_divelist_default_font[] = "Segoe UI"; const char *system_divelist_default_font = non_standard_system_divelist_default_font; double system_divelist_default_font_size = -1; -extern bool isWin7Or8(); - void subsurface_OS_pref_setup(void) { if (isWin7Or8()) |