Add landscape splash image.
authorAkos Polster <akos@pipacs.com>
Mon, 7 Feb 2011 20:22:06 +0000 (21:22 +0100)
committerAkos Polster <akos@pipacs.com>
Mon, 7 Feb 2011 20:22:06 +0000 (21:22 +0100)
dorian.qrc
icons/maemo/splash.jpg [new file with mode: 0644]
icons/maemo/splash.png [new file with mode: 0755]
main.cpp
widgets/splash.cpp

index 67686c2..ad574c6 100644 (file)
@@ -55,5 +55,6 @@
         <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>
diff --git a/icons/maemo/splash.jpg b/icons/maemo/splash.jpg
new file mode 100644 (file)
index 0000000..a5d112d
Binary files /dev/null and b/icons/maemo/splash.jpg differ
diff --git a/icons/maemo/splash.png b/icons/maemo/splash.png
new file mode 100755 (executable)
index 0000000..cea6ee0
Binary files /dev/null and b/icons/maemo/splash.png differ
index 1a23466..e622dc8 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -51,12 +51,14 @@ int main(int argc, char *argv[])
 
     // 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) {
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