aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-03-25 00:19:42 +0000
committerShawn Rutledge <shawn.rutledge@qt.io>2020-05-08 11:08:40 +0100
commitb97a2de222c8d51430b3e9281ff181361cb7ea14 (patch)
treefacb34889a24c1a133185c2ba469b36540b14b0d /examples
parent1fc230c774ff599d14a40682c74f09118db04b2f (diff)
Remove Screen.orientationUpdateMask
Now Screen.orientation works by default rather than filtering by default. Task-number: QTBUG-83055 Change-Id: I0f49499ec25ceeebf19bc8ef1adc259023f1bc75 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/window/main.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/quick/window/main.cpp b/examples/quick/window/main.cpp
index 1a9598a56c..25eb3663ab 100644
--- a/examples/quick/window/main.cpp
+++ b/examples/quick/window/main.cpp
@@ -59,10 +59,6 @@
int main(int argc, char* argv[])
{
QGuiApplication app(argc, argv);
- const auto screens = QGuiApplication::screens();
- for (QScreen *screen : screens)
- screen->setOrientationUpdateMask(Qt::LandscapeOrientation | Qt::PortraitOrientation |
- Qt::InvertedLandscapeOrientation | Qt::InvertedPortraitOrientation);
QQmlEngine engine;
QQmlComponent component(&engine);
QQuickWindow::setDefaultAlphaBuffer(true);