#if defined(Q_WS_MAEMO_5) //If not landscape, need to return to landscape view if(m_sCurrOrientation.compare(Core::ORIENTATION_LANDSCAPE) != 0) { setAttribute(Qt::WA_Maemo5LandscapeOrientation, true); hide(); showMaximized(); } #endif