summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qinputpanel.cpp
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2012-01-05 18:03:49 +0200
committerQt by Nokia <qt-info@nokia.com>2012-01-11 11:18:51 +0100
commit8ae55a3484c0811cb975572dea396b978a54836b (patch)
treed8d39ef8dee56461666fad1bf70414a40e7ce5ee /src/gui/kernel/qinputpanel.cpp
parent30ad53a0a6b1f6d5d50fe12777dc1045dec22803 (diff)
Input direction/locale to come from platform input context
Change-Id: Ib049693211a08dcffc9dbe49add54e7feab38978 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Diffstat (limited to 'src/gui/kernel/qinputpanel.cpp')
-rw-r--r--src/gui/kernel/qinputpanel.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/kernel/qinputpanel.cpp b/src/gui/kernel/qinputpanel.cpp
index 804bcda4dc..d6dd55b651 100644
--- a/src/gui/kernel/qinputpanel.cpp
+++ b/src/gui/kernel/qinputpanel.cpp
@@ -41,7 +41,6 @@
#include <qinputpanel.h>
#include <private/qinputpanel_p.h>
-#include "private/qkeymapper_p.h"
QT_BEGIN_NAMESPACE
@@ -254,7 +253,11 @@ bool QInputPanel::isAnimating() const
*/
QLocale QInputPanel::locale() const
{
- return qt_keymapper_private()->keyboardInputLocale;
+ Q_D(const QInputPanel);
+ QPlatformInputContext *ic = d->platformInputContext();
+ if (ic)
+ return ic->locale();
+ return QLocale::c();
}
/*!
@@ -263,7 +266,11 @@ QLocale QInputPanel::locale() const
*/
Qt::LayoutDirection QInputPanel::inputDirection() const
{
- return qt_keymapper_private()->keyboardInputDirection;
+ Q_D(const QInputPanel);
+ QPlatformInputContext *ic = d->platformInputContext();
+ if (ic)
+ return ic->inputDirection();
+ return Qt::LeftToRight;
}
/*!