Skip to content

Get the current window's QScreen in a simpler way

Nate Graham requested to merge ngraham/kconfig:use-qscreen-directly into master

restoreWindowSize() was doing a complicated roundabout dance to ultimately just get the QScreen that the current window was on. We can can do this much more simply using QWindow::screen(), which saveWindowSize() is already doing. With this commit, they are both using the same code to find the QScreen, reducing the potential for subtle bugs to creep in between their implementations.

Merge request reports

Loading