Add landscape splash image.
[dorian] / widgets / splash.cpp
index b149e5e..3d8e94b 100755 (executable)
@@ -2,9 +2,12 @@
 \r
 #include "splash.h"\r
 #include "platform.h"\r
+#include "settings.h"\r
+#include "trace.h"\r
 \r
 Splash::Splash(): QSplashScreen()\r
 {\r
+    TRACE;\r
     Platform *platform = Platform::instance();\r
 #if defined(Q_OS_SYMBIAN)\r
     QRect geo = QApplication::desktop()->availableGeometry();\r
@@ -17,6 +20,7 @@ Splash::Splash(): QSplashScreen()
                    Qt::IgnoreAspectRatio, Qt::SmoothTransformation));\r
     }\r
 #elif defined(Q_WS_MAEMO_5)\r
+    // Force landscape: QSplash seems to be broken in portrait\r
     platform->setOrientation(this, "landscape");\r
     setPixmap(QPixmap(platform->icon("splash-landscape", ".jpg")));\r
 #endif\r