Gui: fix possibly garbled toolbars and menus

See also Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986821
For now enable this line only for Windows builds
This commit is contained in:
wmayer
2023-03-08 17:24:40 +01:00
committed by wwmayer
parent d0a23a1cd2
commit f70bf280c6

View File

@@ -1875,7 +1875,7 @@ void Application::runApplication()
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0) && defined(Q_OS_WIN)
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
}