summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>2009-11-18 12:45:35 -0300
committerAnselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>2009-11-18 15:42:53 -0300
commit0fce583116a436d78e1d313d768909287a0337e4 (patch)
tree93db4df035a5263126c7d80a73f804c99b1ca88a
parent52c3e95e2b46afaf0143f4f78ffbdc71bbba6947 (diff)
Shared: Fix small issue in system.cpp
Error when compiling for maemo, s/widget/window Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
-rw-r--r--shared/system.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/system.cpp b/shared/system.cpp
index 4029816..f7b9f9f 100644
--- a/shared/system.cpp
+++ b/shared/system.cpp
@@ -72,8 +72,8 @@ void System::setViewMode(QWidget *window, ViewMode mode)
#elif defined(Q_WS_MAEMO_5)
bool enabled = (mode == PortraitMode);
- widget->setAttribute(Qt::WA_Maemo5ForcePortraitOrientation, enabled);
- widget->setAttribute(Qt::WA_Maemo5ForceLandscapeOrientation, !enabled);
+ window->setAttribute(Qt::WA_Maemo5ForcePortraitOrientation, enabled);
+ window->setAttribute(Qt::WA_Maemo5ForceLandscapeOrientation, !enabled);
#else
Q_UNUSED(window);
Q_UNUSED(mode);