Extra auto orientation
[easylist] / src / mainform.cpp
index f7338bd..690c94c 100755 (executable)
@@ -177,10 +177,17 @@ void MainForm::on_actionAuto_Orientation_triggered()
 {\r
     if(ui->actionAuto_Orientation->isChecked())\r
     {\r
+#ifdef Q_WS_MAEMO_5\r
+        setAttribute(Qt::WA_Maemo5PortraitOrientation, false);\r
+        setAttribute(Qt::WA_Maemo5LandscapeOrientation, false);\r
         setAttribute(Qt::WA_Maemo5AutoOrientation, true);\r
+#endif\r
     }\r
     else\r
     {\r
+#ifdef Q_WS_MAEMO_5\r
         setAttribute(Qt::WA_Maemo5AutoOrientation, false);\r
+#endif\r
+        setLandscapeMode(landscape);\r
     }\r
 }\r