aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Lamecker <bernd.lamecker@basyskom.de>2010-07-21 09:42:21 +0200
committerMike FABIAN <mike.fabian@basyskom.de>2010-07-22 17:22:52 +0200
commit29e6f99b86f01f8dc7e7065e8e0ebfec8bc3c6d5 (patch)
tree27a4806dfc12a0778bcaee5c781fd949e8cca169
parent9e6447a2334a899da61daea6f0212c11338ffacf (diff)
Changes: Look VKB to plainQt orientation
RevBy: TrustMe
-rw-r--r--plainqt/style/qtmaemo6style.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/plainqt/style/qtmaemo6style.cpp b/plainqt/style/qtmaemo6style.cpp
index 54c6b93b..1f9a34a8 100644
--- a/plainqt/style/qtmaemo6style.cpp
+++ b/plainqt/style/qtmaemo6style.cpp
@@ -195,6 +195,9 @@ void QtMaemo6StylePrivate::initM()
qCritical() << "Virtual keyboard notification connection failed";
QObject::connect(MTheme::instance(), SIGNAL(pixmapRequestsFinished()), q, SLOT(updateDirtyWidgets()));
+
+ //Force VKB to landscape orientation
+ MInputMethodState::instance()->setActiveWindowOrientationAngle(M::Angle0);
}
const MStyle *QtMaemo6StylePrivate::mStyle(QStyle::State state,
@@ -2669,9 +2672,11 @@ void QtMaemo6Style::doOrientationChange()
Q_D(QtMaemo6Style);
qCritical() << "orientation Change" << d->m_isOrientationChangeEnabled;
if(d->m_isOrientationChangeEnabled) {
- emit orientationChanged(orientation());
+ M::OrientationAngle currentOrientation = orientation();
+ MInputMethodState::instance()->setActiveWindowOrientationAngle(currentOrientation);
+ emit orientationChanged(currentOrientation);
//also emit this with int as parameter for meegotouch independent use
- emit orientationChanged(static_cast<int>(orientation()));
+ emit orientationChanged(static_cast<int>(currentOrientation));
}
}