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