ginebra2/emulator/browser.cpp
changeset 12 afcd8e6d025b
parent 9 b39122337a00
child 16 3c88a81ff781
--- a/ginebra2/emulator/browser.cpp	Wed Sep 01 13:56:21 2010 -0400
+++ b/ginebra2/emulator/browser.cpp	Fri Sep 17 12:11:40 2010 -0400
@@ -37,6 +37,11 @@
 #endif
 #include <QWebSettings>
 
+#ifdef ORBIT_UI
+#include <qmatrix.h>
+const int KLandscapeRoatation =90;
+#endif
+
 #ifndef Q_OS_SYMBIAN
 // Uncomment the next line to enable the javascript console dialog.
 //#define CHROME_CONSOLE 1
@@ -306,7 +311,21 @@
     m_splashScreen = new QLabel(NULL);
     m_splashScreen->setAlignment(Qt::AlignCenter);
     m_splashScreen->setStyleSheet("background-color: #FFF");
-    m_splashScreen->setPixmap(QPixmap(imagePath));
+    
+#ifdef ORBIT_UI
+    if (m_view->orientation() == Qt::Horizontal) {
+		QMatrix mx;
+		mx.rotate(KLandscapeRoatation);
+    	m_splashScreen->setPixmap((QPixmap(imagePath)).transformed(mx));
+    }
+    else {
+        m_splashScreen->setPixmap((QPixmap(imagePath)));
+    }
+#else
+     m_splashScreen->setPixmap((QPixmap(imagePath)));
+#endif    
+   
+
     if (m_splashScreen->pixmap()->isNull()) {
         ;//qDebug() << "ChromeView::chromeLoaded: ERROR splashscreen creation failed. " << imagePath;
     }