summaryrefslogtreecommitdiffstats
path: root/doc/global/template
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2015-12-14 14:47:01 +0100
committerShawn Rutledge <shawn.rutledge@theqtcompany.com>2016-01-28 19:17:32 +0000
commit8c843712da2510beb7f510c1885df819edbdf058 (patch)
tree161d8cc7997f95e29af68a5ef01b749e69a2584d /doc/global/template
parente6de387ea0d2bf479caf7216f206ff35241faa3b (diff)
Doc: a QScreen can be a placeholder if there are no screens attached
As of change a094af001795c9651b299d700a992150d1aba33a, X11 now joins other platforms in having a fake screen if no physical screens are attached, rather than ever allowing QGuiApplication::screens() to return an empty list or QGuiApplication::primaryScreen() to return null. This is more consistent across platforms and helps to prevent bugs in applications which want to use QScreen in some context but fail to check whether it exists. [ChangeLog][X11] In case there are no physical screens attached, QGuiApplication::screens() and QGuiApplication::primaryScreen() will return a placeholder QScreen object. Task-number: QTBUG-42985 Change-Id: I0f58afbfe2a034fb9e872a5d1dbdabad2c7dbf9e Reviewed-by: Błażej Szczygieł <spaz16@wp.pl> Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'doc/global/template')
0 files changed, 0 insertions, 0 deletions