+#if 0 // def Q_OS_SYMBIAN
+ // Show splash screen
+ Splash *splash = new Splash();
+ splash->showFullScreen();
+ // splash->showMaximized();
+ splash->raise();
+ a.processEvents();
+#endif
+
+ // Create and initialize main window, then run event loop
+ MainWindow *mainWindow = new MainWindow();
+ settings->apply();
+ mainWindow->initialize();
+#if 0 // def Q_OS_SYMBIAN
+ splash->close();
+ delete splash;
+ mainWindow->showNormal();
+#endif
+ ret = a.exec();
+ delete mainWindow;
+
+ // Re-start application if event loop exit code was 1000
+ if (ret == 1000) {
+ Platform::instance()->restart(argv);