From d747d76762ad745b510c645706c2dd708fe20302 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 27 Oct 2020 21:03:14 +0100 Subject: 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 --- core/windows.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/windows.c') 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 @@ -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()) -- cgit v1.2.3-70-g09d2