mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
49fc05de7e
commit
d747d76762
4 changed files with 26 additions and 121 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue