summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2012-01-16 13:43:11 +0200
committerQt by Nokia <qt-info@nokia.com>2012-01-17 13:15:04 +0100
commitcf0d5d4554999bfe34e65ddea52726543246fc73 (patch)
tree64a5f6f147b5d7283dbda942113d28b2fb6b1fe2 /src/widgets/kernel/qapplication.cpp
parent90a3e6c7c4059835f41918c893436bd9490f813f (diff)
Move keyboardInput data back to QApplication
Deprecated interface, rest of Qt now adapted to QInputPanel. Change-Id: Iacbbcac90dd7c037a24b45df1ee868f04090b21b Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r--src/widgets/kernel/qapplication.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index fc295eb874..cbd744f7e7 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -4967,6 +4967,28 @@ QInputContext *QApplication::inputContext() const
}
#endif // QT_NO_IM
+/*!
+ \since 4.2
+ \obsolete
+
+ Returns the current keyboard input locale. Replaced with QInputPanel::locale()
+*/
+QLocale QApplication::keyboardInputLocale()
+{
+ return qApp ? qApp->inputPanel()->locale() : QLocale::c();
+}
+
+/*!
+ \since 4.2
+ \obsolete
+
+ Returns the current keyboard input direction. Replaced with QInputPanel::inputDirection()
+*/
+Qt::LayoutDirection QApplication::keyboardInputDirection()
+{
+ return qApp ? qApp->inputPanel()->inputDirection() : Qt::LeftToRight;
+}
+
bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event)
{
return QGuiApplication::sendSpontaneousEvent(receiver, event);