#include <QtGui>\r
\r
#include "splash.h"\r
+#include "platform.h"\r
\r
-Splash::Splash(): QSplashScreen(QPixmap(":/icons/splash.jpg").scaled(360, 518,\r
- Qt::IgnoreAspectRatio, Qt::SmoothTransformation))\r
+Splash::Splash(): QSplashScreen()\r
{\r
+ Platform *platform = Platform::instance();\r
+#if defined(Q_OS_SYMBIAN)\r
+ QRect geo = QApplication::desktop()->availableGeometry();\r
+ if (geo.width() < geo.height()) {\r
+ setPixmap(QPixmap(platform->icon("splash", ".jpg")).scaled(360, 518,\r
+ Qt::IgnoreAspectRatio, Qt::SmoothTransformation));\r
+ } else {\r
+ setPixmap(QPixmap(platform->icon("splash-landscape", ".jpg")).\r
+ scaled(520, 330,\r
+ Qt::IgnoreAspectRatio, Qt::SmoothTransformation));\r
+ }\r
+#elif defined(Q_WS_MAEMO_5)\r
+ platform->setOrientation(this, "landscape");\r
+ setPixmap(QPixmap(platform->icon("splash-landscape", ".jpg")));\r
+#endif\r
}\r