subsurface/core/subsurfacesysinfo.cpp
Berthold Stoeger d747d76762 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>
2020-10-27 16:18:09 -07:00

10 lines
230 B
C++

// SPDX-License-Identifier: LGPL-2.1+
#include "subsurfacesysinfo.h"
#include <QSysInfo>
#ifdef Q_OS_WIN
extern "C" bool isWin7Or8()
{
return (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based) >= QSysInfo::WV_WINDOWS7;
}
#endif