Determine if we should use Qt scaling based on env var
ClosedPublic

Authored by davidedmundson on Aug 8 2017, 10:04 AM.

Details

Summary

KWindowSystem::platform() cannot be used before QApplication is
constructed.

QCoreApplication::setAttribute needs to be called before QApplication is
constructed.

We need a different method. I've used an explicit new env variable so
that some users can also opt in to use this when on X.

Test Plan

Logged in.
Plasma panels all work. Look to be native resolution.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Aug 8 2017, 10:04 AM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 8 2017, 10:04 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.Aug 8 2017, 10:32 AM
mart added a subscriber: mart.

ok, let's go with this verison

This revision is now accepted and ready to land.Aug 8 2017, 10:32 AM
This revision was automatically updated to reflect the committed changes.