summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/cube
diff options
context:
space:
mode:
authorSarah Smith <sarah.j.smith@nokia.com>2011-07-06 16:46:41 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-06 08:52:31 +0200
commit4e26412ead4db24c662edb94206c4fcb79893ec7 (patch)
tree9e1801b43d559d76df74f3c4ee910b687e92c648 /examples/qt3d/cube
parentee6774456e8e329e073dfe26c9ec84fd504d12c3 (diff)
Various symbian fixes
Conflicts: demos/quick3d/model_viewer/model_viewer.pro demos/quick3d/robo_bounce/robo_bounce.pro demos/quick3d/tea_service/tea_service.pro examples/qt3d/basket/basket.pro examples/qt3d/builder/builder.pro examples/quick3d/basket/basket.pro examples/quick3d/cube/cube.pro examples/quick3d/forest/forest.pro examples/quick3d/lander/lander.pro examples/quick3d/matrix_animation/matrix_animation.pro examples/quick3d/monkeygod/monkeygod.pro examples/quick3d/moon/moon.pro examples/quick3d/photoroom/photoroom.pro examples/quick3d/shaders/shaders.pro examples/quick3d/sphere/sphere.pro examples/quick3d/tutorials/teapot_bounce_qml/teapot_bounce_qml.pro examples/quick3d/tutorials/teapot_qml/teapot_qml.pro src/quick3d/quick3d.pri Change-Id: Ia14cfdcabd85b2264266d977f97a1216244a783c Reviewed-on: http://codereview.qt.nokia.com/1202 Reviewed-by: Sarah Jane Smith
Diffstat (limited to 'examples/qt3d/cube')
-rw-r--r--examples/qt3d/cube/cube.pro4
-rw-r--r--examples/qt3d/cube/main.cpp5
2 files changed, 9 insertions, 0 deletions
diff --git a/examples/qt3d/cube/cube.pro b/examples/qt3d/cube/cube.pro
index 7b2d2877e..4f21388ab 100644
--- a/examples/qt3d/cube/cube.pro
+++ b/examples/qt3d/cube/cube.pro
@@ -13,3 +13,7 @@ OTHER_FILES += \
cube.rc
RC_FILE = cube.rc
+
+symbian {
+ ICON = ../qt3d.svg
+}
diff --git a/examples/qt3d/cube/main.cpp b/examples/qt3d/cube/main.cpp
index 1def235d5..d3f32778a 100644
--- a/examples/qt3d/cube/main.cpp
+++ b/examples/qt3d/cube/main.cpp
@@ -45,6 +45,10 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
CubeView view;
+#ifdef Q_OS_SYMBIAN
+ view.setAttribute(Qt::WA_LockLandscapeOrientation, true);
+ view.showMaximized();
+#else
if (view.stereoType() != QGLView::RedCyanAnaglyph)
view.camera()->setEyeSeparation(0.3f);
if (QApplication::arguments().contains(QLatin1String("-maximize")))
@@ -53,5 +57,6 @@ int main(int argc, char *argv[])
view.showFullScreen();
else
view.show();
+#endif
return app.exec();
}