forked from qt-creator/qt-creator
Limit workaround to 5.14.0
QTBUG-80934 was fixed in Qt 5.14.1. Change-Id: I3f9f2a629bce40b13ad8836ae4b0f4a710241d49 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -342,7 +342,7 @@ static void setHighDpiEnvironmentVariable()
|
|||||||
&& !qEnvironmentVariableIsSet("QT_SCALE_FACTOR")
|
&& !qEnvironmentVariableIsSet("QT_SCALE_FACTOR")
|
||||||
&& !qEnvironmentVariableIsSet("QT_SCREEN_SCALE_FACTORS")) {
|
&& !qEnvironmentVariableIsSet("QT_SCREEN_SCALE_FACTORS")) {
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
#if QT_VERSION == QT_VERSION_CHECK(5, 14, 0)
|
||||||
// work around QTBUG-80934
|
// work around QTBUG-80934
|
||||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||||
Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
||||||
|
Reference in New Issue
Block a user