Using messageFont require now Windows Vista or newer

This commit is contained in:
Rafael 2016-11-28 08:21:26 +01:00
parent 6e55152b26
commit d7267619c0

View file

@ -33,6 +33,7 @@
#include <QTranslator>
#include <QMessageBox>
#include <QFileInfo>
#include <QSysInfo>
#include <QRawFont>
#include <QObject>
#include <QString>
@ -53,7 +54,9 @@ int main(int argc, char *argv[])
a.setApplicationVersion(GTA5SYNC_APPVER);
#ifdef GTA5SYNC_WIN
#if QT_VERSION >= 0x050000
#if QT_VERSION >= 0x050400
if (QSysInfo::windowsVersion() >= 0x0080)
{
// Get Windows Font
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(ncm);
@ -68,6 +71,7 @@ int main(int argc, char *argv[])
// Set Application Font
QFont appFont(uiFontStr, 9);
a.setFont(appFont);
}
#endif
#endif