Update in line with recent QWindow API change
Change-Id: Id495215c7861f05849ffbfd1a0e66af9990a1365 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
QmlApplicationViewer viewer;
|
QmlApplicationViewer viewer;
|
||||||
|
|
||||||
viewer.setOrientation(Qt::LandscapeOrientation);
|
viewer.requestWindowOrientation(Qt::LandscapeOrientation);
|
||||||
viewer.setMainQmlFile(QLatin1String("qml/qmlvideo/main.qml"));
|
viewer.setMainQmlFile(QLatin1String("qml/qmlvideo/main.qml"));
|
||||||
QQuickItem *rootObject = viewer.rootObject();
|
QQuickItem *rootObject = viewer.rootObject();
|
||||||
rootObject->setProperty("source1", url1);
|
rootObject->setProperty("source1", url1);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
QmlApplicationViewer viewer;
|
QmlApplicationViewer viewer;
|
||||||
|
|
||||||
viewer.setOrientation(Qt::LandscapeOrientation);
|
viewer.requestWindowOrientation(Qt::LandscapeOrientation);
|
||||||
viewer.setMainQmlFile(QLatin1String("qml/qmlvideofx/") + MainQmlFile);
|
viewer.setMainQmlFile(QLatin1String("qml/qmlvideofx/") + MainQmlFile);
|
||||||
QQuickItem *rootObject = viewer.rootObject();
|
QQuickItem *rootObject = viewer.rootObject();
|
||||||
rootObject->setProperty("fileName", fileName);
|
rootObject->setProperty("fileName", fileName);
|
||||||
@@ -117,7 +117,6 @@ int main(int argc, char *argv[])
|
|||||||
viewer.rootContext()->setContextProperty("fileReader", &fileReader);
|
viewer.rootContext()->setContextProperty("fileReader", &fileReader);
|
||||||
|
|
||||||
#ifdef SMALL_SCREEN_PHYSICAL
|
#ifdef SMALL_SCREEN_PHYSICAL
|
||||||
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
|
|
||||||
viewer.showFullScreen();
|
viewer.showFullScreen();
|
||||||
#else
|
#else
|
||||||
viewer.showExpanded();
|
viewer.showExpanded();
|
||||||
|
|||||||
Reference in New Issue
Block a user