File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -125,14 +125,7 @@ void PlatformInfo::enableHiDPISupport()
125125 && !qEnvironmentVariableIsSet (" QT_AUTO_SCREEN_SCALE_FACTOR" )
126126 && !qEnvironmentVariableIsSet (" QT_SCALE_FACTOR" )
127127 && !qEnvironmentVariableIsSet (" QT_SCREEN_SCALE_FACTORS" )) {
128- // Only if there is no attempt to set from the system environment
129- if (QOperatingSystemVersion::current ().type () == QOperatingSystemVersion::OSType::Windows) {
130- // DpiAware is set to true in the application manifest
131- // And now we rely on Windows compatibility feature
132- // Probably, even this may be useful: QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
133- } else {
134- // For Linux and macOS Qt does a good job
128+ // Only if there is no attempt to set from the system environment
135129 QCoreApplication::setAttribute (Qt::AA_EnableHighDpiScaling);
136- }
137130 }
138131}
You can’t perform that action at this time.
0 commit comments