<file>icons/edit.png</file>
<file>icons/rotate.png</file>
<file>icons/maemo/splash-landscape.jpg</file>
+ <file>icons/maemo/splash.jpg</file>
</qresource>
</RCC>
// Initialize main window
MainWindow *mainWindow = new MainWindow();
- settings->apply();
mainWindow->initialize();
// Hide splash screen
splash.finish(mainWindow);
+ // Apply settings (orientation, style etc.)
+ settings->apply();
+
// Run event loop, re-start application if event loop exit code was 1000
ret = app.exec();
if (ret == 1000) {
\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
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