diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2012-09-19 11:55:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-24 00:26:07 +0200 |
commit | 1a31561178d9cb9e5a6f3f986075df24ea5705ff (patch) | |
tree | 0953a9e349b258e00dc86e759338b2a012ee28a8 /src/plugins/platforms/xcb/qxcbintegration.h | |
parent | 06c89ae026d5a3579636d8a090cf546b23273bed (diff) |
xcb: dynamic QScreens; primary first; corrected logical DPI
A new QScreen is created when an output is activated (monitor or
projector is added, for example), and destroyed when the output is
turned off. Ensures that screens and siblings are always in
the right order: primary comes first.
Logical DPI is derived from virtual geom / virtual size,
which will be different than output geom / physical size
if X was started with --dpi override. This is a good thing:
when X gets wrong EDID info for physical size and you need to
override it to get reasonable font sizes, Qt will heed the
logical DPI for font sizing.
Change-Id: I5e3de34013c1b6b21067243de56f3f1eb72787fa
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbintegration.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbintegration.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbintegration.h b/src/plugins/platforms/xcb/qxcbintegration.h index 2a7bc603da..7f7c52372c 100644 --- a/src/plugins/platforms/xcb/qxcbintegration.h +++ b/src/plugins/platforms/xcb/qxcbintegration.h @@ -106,6 +106,8 @@ private: #endif QScopedPointer<QPlatformServices> m_services; + + friend class QXcbConnection; // access QPlatformIntegration::screenAdded() }; QT_END_NAMESPACE |