//mainwindow->setAttribute(Qt::WA_Maemo5AutoOrientation, true);
mainwindow->showMaximized();
- mainwindow->setAttribute(Qt::WA_Maemo5AutoOrientation, true);
-
+ #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
+mainwindow->setAttribute(Qt::WA_Maemo5AutoOrientation, true);
+#endif
return a.exec();
}
void PlayerMainWindow::setPortrait()
{
- this->setAttribute(Qt::WA_Maemo5PortraitOrientation, true);
+ #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
+ this->setAttribute(Qt::WA_Maemo5PortraitOrientation, true);
+ #endif
+
+
}
void PlayerMainWindow::setLandscape()
{
+ #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
this->setAttribute(Qt::WA_Maemo5LandscapeOrientation, true);
+ #endif
}
void PlayerMainWindow::setAutoRotate()
{
- this->setAttribute(Qt::WA_Maemo5AutoOrientation, true);
+ #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
+ this->setAttribute(Qt::WA_Maemo5AutoOrientation, true);
+ #endif
}
void PlayerMainWindow::orientationChanged() {