From: Willem Liu Date: Fri, 24 Sep 2010 19:40:39 +0000 (+0200) Subject: Extra auto orientation X-Git-Tag: easylist-0.3.9~1 X-Git-Url: https://vcs.maemo.org/git/?p=easylist;a=commitdiff_plain;h=1f342ebb840898997ddf3bb37aae6168cb9acd17 Extra auto orientation --- diff --git a/debian/changelog b/debian/changelog index 7a866c3..04c223d 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -easylist (0.3.8) unstable; urgency=low +easylist (0.3.9) unstable; urgency=low * Fixed a small bug. When going to Edit list mode the list text is saved to QSettings. diff --git a/src/mainform.cpp b/src/mainform.cpp index f7338bd..690c94c 100755 --- a/src/mainform.cpp +++ b/src/mainform.cpp @@ -177,10 +177,17 @@ void MainForm::on_actionAuto_Orientation_triggered() { if(ui->actionAuto_Orientation->isChecked()) { +#ifdef Q_WS_MAEMO_5 + setAttribute(Qt::WA_Maemo5PortraitOrientation, false); + setAttribute(Qt::WA_Maemo5LandscapeOrientation, false); setAttribute(Qt::WA_Maemo5AutoOrientation, true); +#endif } else { +#ifdef Q_WS_MAEMO_5 setAttribute(Qt::WA_Maemo5AutoOrientation, false); +#endif + setLandscapeMode(landscape); } } diff --git a/src/mainform.ui b/src/mainform.ui index 55dd663..3c7b546 100755 --- a/src/mainform.ui +++ b/src/mainform.ui @@ -63,10 +63,10 @@ - - + +