summaryrefslogtreecommitdiffstats
path: root/examples/video
diff options
context:
space:
mode:
Diffstat (limited to 'examples/video')
-rw-r--r--examples/video/qmlvideo/main.cpp2
-rw-r--r--examples/video/qmlvideofx/main.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/video/qmlvideo/main.cpp b/examples/video/qmlvideo/main.cpp
index 1d264a8f9..bb1ca91d6 100644
--- a/examples/video/qmlvideo/main.cpp
+++ b/examples/video/qmlvideo/main.cpp
@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
QmlApplicationViewer viewer;
- viewer.setOrientation(Qt::LandscapeOrientation);
+ viewer.requestWindowOrientation(Qt::LandscapeOrientation);
viewer.setMainQmlFile(QLatin1String("qml/qmlvideo/main.qml"));
QQuickItem *rootObject = viewer.rootObject();
rootObject->setProperty("source1", url1);
diff --git a/examples/video/qmlvideofx/main.cpp b/examples/video/qmlvideofx/main.cpp
index dc30456bd..e849f065b 100644
--- a/examples/video/qmlvideofx/main.cpp
+++ b/examples/video/qmlvideofx/main.cpp
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
QmlApplicationViewer viewer;
- viewer.setOrientation(Qt::LandscapeOrientation);
+ viewer.requestWindowOrientation(Qt::LandscapeOrientation);
viewer.setMainQmlFile(QLatin1String("qml/qmlvideofx/") + MainQmlFile);
QQuickItem *rootObject = viewer.rootObject();
rootObject->setProperty("fileName", fileName);
@@ -117,7 +117,6 @@ int main(int argc, char *argv[])
viewer.rootContext()->setContextProperty("fileReader", &fileReader);
#ifdef SMALL_SCREEN_PHYSICAL
- viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
viewer.showFullScreen();
#else
viewer.showExpanded();