From e8f155c48243a5dfa898e245404f694fc3054cb1 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Fri, 13 Mar 2020 15:05:01 +0100 Subject: [PATCH] code not compiling with 5.6 disabled --- src/common/QskFunctions.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/common/QskFunctions.cpp b/src/common/QskFunctions.cpp index 559544ef..5552d42f 100644 --- a/src/common/QskFunctions.cpp +++ b/src/common/QskFunctions.cpp @@ -7,7 +7,6 @@ #include QSK_QT_PRIVATE_BEGIN -#include #include QSK_QT_PRIVATE_END @@ -179,9 +178,19 @@ QRect qskPlatformScreenGeometry( const QScreen* screen ) return screen->handle()->geometry(); } +#if 0 + +// does not compile with Qt 5.6 TODO ... + +QSK_QT_PRIVATE_BEGIN +#include +QSK_QT_PRIVATE_END + qreal qskGlobalScaleFactor() { // The value of QT_SCALE_FACTOR const QScreen* noScreen = nullptr; return QHighDpiScaling::factor( noScreen ); } + +#endif