Remove uses of QScreen::orientationUpdateMask

It has been removed in qtbase 3e12951c0b35041920989d6089ddb6c2f5c2d3d1.

Task-number: QTBUG-35427
Task-number: QTBUG-38576
Task-number: QTBUG-44569
Task-number: QTBUG-51012
Task-number: QTBUG-83055
Change-Id: I3ec0907185b237c329f4ec34148b19c5a7706c22
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Shawn Rutledge 2020-05-08 17:48:30 +02:00
parent 159ffc775b
commit 4e78f559be
3 changed files with 0 additions and 14 deletions

View File

@ -186,16 +186,6 @@ QList<QPlatformScreen *> QWaylandScreen::virtualSiblings() const
return list;
}
void QWaylandScreen::setOrientationUpdateMask(Qt::ScreenOrientations mask)
{
const auto allWindows = QGuiApplication::allWindows();
for (QWindow *window : allWindows) {
QWaylandWindow *w = static_cast<QWaylandWindow *>(window->handle());
if (w && w->waylandScreen() == this)
w->setOrientationMask(mask);
}
}
Qt::ScreenOrientation QWaylandScreen::orientation() const
{
return m_orientation;

View File

@ -96,8 +96,6 @@ public:
QDpi logicalDpi() const override;
QList<QPlatformScreen *> virtualSiblings() const override;
void setOrientationUpdateMask(Qt::ScreenOrientations mask) override;
Qt::ScreenOrientation orientation() const override;
int scale() const;
qreal devicePixelRatio() const override;

View File

@ -183,8 +183,6 @@ void QWaylandWindow::initWindow()
if (mDisplay->compositorVersion() >= 3)
mSurface->set_buffer_scale(scale());
if (QScreen *s = window()->screen())
setOrientationMask(s->orientationUpdateMask());
setWindowFlags(window()->flags());
if (window()->geometry().isEmpty())
setGeometry_helper(QRect(QPoint(), QSize(500,500)));