Update in line with recent QWindow API change

Change-Id: Id495215c7861f05849ffbfd1a0e66af9990a1365
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Alan Alpert
2012-01-25 14:25:38 +10:00
committed by Qt by Nokia
parent 2db9b4b1c8
commit 8aef60c1cf
2 changed files with 2 additions and 3 deletions

View File

@@ -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();