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>
This commit is contained in:
parent
f58cc97806
commit
d62f2bc4e7
@ -113,6 +113,14 @@ QDpi QWaylandScreen::logicalDpi() const
|
|||||||
return QPlatformScreen::logicalDpi();
|
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)
|
void QWaylandScreen::setOrientationUpdateMask(Qt::ScreenOrientations mask)
|
||||||
{
|
{
|
||||||
foreach (QWindow *window, QGuiApplication::allWindows()) {
|
foreach (QWindow *window, QGuiApplication::allWindows()) {
|
||||||
|
@ -68,6 +68,7 @@ public:
|
|||||||
QSizeF physicalSize() const Q_DECL_OVERRIDE;
|
QSizeF physicalSize() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
QDpi logicalDpi() const Q_DECL_OVERRIDE;
|
QDpi logicalDpi() const Q_DECL_OVERRIDE;
|
||||||
|
QList<QPlatformScreen *> virtualSiblings() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
void setOrientationUpdateMask(Qt::ScreenOrientations mask);
|
void setOrientationUpdateMask(Qt::ScreenOrientations mask);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user