Skip to content

Drop call to setPlatformScreen in QHighDpiScaling::setScreenFactor

Fushan Wen requested to merge (removed):work/fuf/cp-413380 into kde/5.15

Drop call to setPlatformScreen since the only affected variables are logicalDpi and geometry. Replace setPlatformScreen with updateLogicalDpi which handles global scale factor changes in QScreen.

Call updateGeometriesWithSignals() to check if there are any changes in geometry or availableGeometry, since the geometry or availableGeometry can also change when setting a scale factor.

Move setPlatformScreen to QScreen ctor as the function is not used elsewhere.

Pick-to: 6.4 6.3 6.2 Change-Id: I7acf40bf0643e89a1d9177674d66dc503829f98f Reviewed-by: Tor Arne Vestbø tor.arne.vestbo@qt.io (cherry picked from commit 7b2ae3fa)

Ref: plasma/plasma-desktop#34 (closed)

Edited by Fushan Wen

Merge request reports