summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-03-04 22:23:20 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2019-05-14 19:31:16 +0200
commit4c9758f1af604e571054856017afd71bd17c9f82 (patch)
tree456725674d1e973235a28dcee38c6dd2b4675631 /tests/auto/widgets/widgets
parent8be17f1fd54c2923497af57b57fbe76a092a4f50 (diff)
QHighDpi: Simplify top-level window handling code
Introduce origin(QWindow *), which returns the point around which coordinates should be scaled: the screen origin for top-level windows, and (0, 0) for child windows. The code paths for top-level and child windows can then be combined. Change-Id: I6b9cdbd9e7c2d9406e9137e325c4eb5c79e3ac9a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets')
0 files changed, 0 insertions, 0 deletions