diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-01-30 19:31:00 +0200 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-02-02 08:10:48 +0000 |
commit | d15c0db0c84109c405d4fb0752e2a0cfde5606b0 (patch) | |
tree | 924cfa3093158be39569cf40057c6423bf965771 | |
parent | f074784e6d45fd0c41ad4a5e10a932201609417c (diff) |
Make all the screens virtual siblings
Wayland outputs fit the definition of virtual sibling screens so make
the platform screen subclass so.
Change-Id: Id3f2592653f6309406185589f70127f2b74065ac
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r-- | src/client/qwaylandscreen.cpp | 8 | ||||
-rw-r--r-- | src/client/qwaylandscreen_p.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp index 6e48c442e..ad10b7a02 100644 --- a/src/client/qwaylandscreen.cpp +++ b/src/client/qwaylandscreen.cpp @@ -113,6 +113,14 @@ QDpi QWaylandScreen::logicalDpi() const return QPlatformScreen::logicalDpi(); } +QList<QPlatformScreen *> QWaylandScreen::virtualSiblings() const +{ + QList<QPlatformScreen *> list; + foreach (QWaylandScreen *screen, mWaylandDisplay->screens()) + list << screen; + return list; +} + void QWaylandScreen::setOrientationUpdateMask(Qt::ScreenOrientations mask) { foreach (QWindow *window, QGuiApplication::allWindows()) { diff --git a/src/client/qwaylandscreen_p.h b/src/client/qwaylandscreen_p.h index d3173e0c9..9338c2717 100644 --- a/src/client/qwaylandscreen_p.h +++ b/src/client/qwaylandscreen_p.h @@ -68,6 +68,7 @@ public: QSizeF physicalSize() const Q_DECL_OVERRIDE; QDpi logicalDpi() const Q_DECL_OVERRIDE; + QList<QPlatformScreen *> virtualSiblings() const Q_DECL_OVERRIDE; void setOrientationUpdateMask(Qt::ScreenOrientations mask); |