summaryrefslogtreecommitdiffstats
path: root/examples/effects/lighting/lighting.cpp
diff options
context:
space:
mode:
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 6b0185737c..4532fafe25 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
+}