equal
deleted
inserted
replaced
34 #include <QDebug> |
34 #include <QDebug> |
35 #ifdef _GVA_INSPECT_CHROME_ |
35 #ifdef _GVA_INSPECT_CHROME_ |
36 #include <QWebInspector> |
36 #include <QWebInspector> |
37 #endif |
37 #endif |
38 #include <QWebSettings> |
38 #include <QWebSettings> |
|
39 |
|
40 #ifdef ORBIT_UI |
|
41 #include <qmatrix.h> |
|
42 const int KLandscapeRoatation =90; |
|
43 #endif |
39 |
44 |
40 #ifndef Q_OS_SYMBIAN |
45 #ifndef Q_OS_SYMBIAN |
41 // Uncomment the next line to enable the javascript console dialog. |
46 // Uncomment the next line to enable the javascript console dialog. |
42 //#define CHROME_CONSOLE 1 |
47 //#define CHROME_CONSOLE 1 |
43 #ifdef CHROME_CONSOLE |
48 #ifdef CHROME_CONSOLE |
304 |
309 |
305 if (!imagePath.isNull()) { |
310 if (!imagePath.isNull()) { |
306 m_splashScreen = new QLabel(NULL); |
311 m_splashScreen = new QLabel(NULL); |
307 m_splashScreen->setAlignment(Qt::AlignCenter); |
312 m_splashScreen->setAlignment(Qt::AlignCenter); |
308 m_splashScreen->setStyleSheet("background-color: #FFF"); |
313 m_splashScreen->setStyleSheet("background-color: #FFF"); |
309 m_splashScreen->setPixmap(QPixmap(imagePath)); |
314 |
|
315 #ifdef ORBIT_UI |
|
316 if (m_view->orientation() == Qt::Horizontal) { |
|
317 QMatrix mx; |
|
318 mx.rotate(KLandscapeRoatation); |
|
319 m_splashScreen->setPixmap((QPixmap(imagePath)).transformed(mx)); |
|
320 } |
|
321 else { |
|
322 m_splashScreen->setPixmap((QPixmap(imagePath))); |
|
323 } |
|
324 #else |
|
325 m_splashScreen->setPixmap((QPixmap(imagePath))); |
|
326 #endif |
|
327 |
|
328 |
310 if (m_splashScreen->pixmap()->isNull()) { |
329 if (m_splashScreen->pixmap()->isNull()) { |
311 ;//qDebug() << "ChromeView::chromeLoaded: ERROR splashscreen creation failed. " << imagePath; |
330 ;//qDebug() << "ChromeView::chromeLoaded: ERROR splashscreen creation failed. " << imagePath; |
312 } |
331 } |
313 else { |
332 else { |
314 #ifdef Q_OS_SYMBIAN |
333 #ifdef Q_OS_SYMBIAN |