Skip to content

Commit

Permalink
Gui: fix possibly garbled toolbars and menus
Browse files Browse the repository at this point in the history
See also Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986821
For now enable this line only for Windows builds
  • Loading branch information
wwmayer committed Mar 9, 2023
1 parent d0a23a1 commit f70bf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/Application.cpp
Expand Up @@ -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
}
Expand Down

0 comments on commit f70bf28

Please sign in to comment.