summaryrefslogtreecommitdiff
path: root/examples/effects/lighting/lighting.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-04-28 19:39:11 +0200
committerDavid Boddie <david.boddie@nokia.com>2011-04-28 19:39:11 +0200
commit3abaecc3aec4e46f1c5969c33875fd45aa542385 (patch)
tree58613c5d2b765018c31d0b189e9c5a34d8adde69 /examples/effects/lighting/lighting.cpp
parentddb22795641253a026b72f752ebc769745dd41be (diff)
downloadqt4-tools-3abaecc3aec4e46f1c5969c33875fd45aa542385.tar.gz
Squashed commit of the changes from the mobile-examples repository
(4.7-generated-declarative branch).
Diffstat (limited to 'examples/effects/lighting/lighting.cpp')
-rw-r--r--examples/effects/lighting/lighting.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/effects/lighting/lighting.cpp b/examples/effects/lighting/lighting.cpp
index a988ffbcb3..bd23a2d21a 100644
--- a/examples/effects/lighting/lighting.cpp
+++ b/examples/effects/lighting/lighting.cpp
@@ -134,3 +134,9 @@ void Lighting::animate()
m_scene.update();
}
+void Lighting::resizeEvent(QResizeEvent */*event*/)
+{
+#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
+ fitInView(sceneRect(), Qt::KeepAspectRatio);
+#endif
+}