summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorBłażej Szczygieł <spaz16@wp.pl>2015-12-31 21:47:41 +0100
committerBłażej Szczygieł <spaz16@wp.pl>2016-01-06 16:02:13 +0000
commit1606a0e508b8ecdcbdff953ef55136c8ff59ba79 (patch)
treed15cf1d5d9cc354d2a761196c16196231b31989c /tests/manual
parentf3114120f2d6f81f424ee542635c2711f66b516b (diff)
QDesktopWidget::screenNumber(QWidget*): check virtual sibling screens
Find the root widget only when more than one virtual desktop exists and find the screen index using virtual siblings from this root widget. Use intersecting rects instead of middle point to obtain the screen. This can help to get the screen index when the middle point is outside the screen geometry, but part of the window is still on the screen. If the widget is completely outside the screen geometry, -1 is returned. This commit amends: a6b2a4642f07cd6e52b447e1e441b257990a8d03 Change-Id: I80247fc1956a82c487ee6f728d1576bf48b28748 Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
Diffstat (limited to 'tests/manual')
0 files changed, 0 insertions, 0 deletions