diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-01-25 14:25:38 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-25 06:15:06 +0100 |
commit | 8aef60c1cf3897053a68498db414b91c00eec0fa (patch) | |
tree | 9d4a9797cfca5d5c2eda0bb7214b17f9d1f1a5e4 /examples | |
parent | 2db9b4b1c86cc2f8c293102518af382bc5ae92fd (diff) |
Update in line with recent QWindow API change
Change-Id: Id495215c7861f05849ffbfd1a0e66af9990a1365
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/video/qmlvideo/main.cpp | 2 | ||||
-rw-r--r-- | examples/video/qmlvideofx/main.cpp | 3 |
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(); |