From 8aef60c1cf3897053a68498db414b91c00eec0fa Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 25 Jan 2012 14:25:38 +1000 Subject: Update in line with recent QWindow API change Change-Id: Id495215c7861f05849ffbfd1a0e66af9990a1365 Reviewed-by: Michael Goddard --- examples/video/qmlvideo/main.cpp | 2 +- examples/video/qmlvideofx/main.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/video') 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(); -- cgit v1.2.3