diff options
author | David Boddie <david.boddie@nokia.com> | 2011-04-28 19:39:11 +0200 |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-04-28 19:39:11 +0200 |
commit | 3abaecc3aec4e46f1c5969c33875fd45aa542385 (patch) | |
tree | 58613c5d2b765018c31d0b189e9c5a34d8adde69 /examples/effects/lighting/lighting.cpp | |
parent | ddb22795641253a026b72f752ebc769745dd41be (diff) | |
download | qt4-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.cpp | 6 |
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 +} |