summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-02-13 00:37:04 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-02-13 00:37:04 (GMT)
commitcc278c905839cd7dc4469dee3264fa80a622494e (patch)
tree0f948211a4429a0eadbaea126bcf2d086103f20c /src
parent7263810f4802a3a6755193f6f2692436600a5e53 (diff)
parentb79a8406ef22c2dcd066966a28147f2ca2f895d4 (diff)
downloadQt-cc278c905839cd7dc4469dee3264fa80a622494e.zip
Qt-cc278c905839cd7dc4469dee3264fa80a622494e.tar.gz
Qt-cc278c905839cd7dc4469dee3264fa80a622494e.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-s60-public into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-s60-public: Enabled searching of IM plugins on Symbian.
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qapplication.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index bb6aca9..336be91 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -5264,10 +5264,20 @@ QInputContext *QApplication::inputContext() const
qic = QInputContextFactory::create(QLatin1String("xim"), that);
that->d_func()->inputContext = qic;
}
-#elif defined(Q_WS_S60)
+#elif defined(Q_OS_SYMBIAN)
if (!d->inputContext) {
QApplication *that = const_cast<QApplication *>(this);
- that->d_func()->inputContext = QInputContextFactory::create(QString::fromLatin1("coefep"), that);
+ const QStringList keys = QInputContextFactory::keys();
+ // Try hbim and coefep first, then try others.
+ if (keys.contains("hbim")) {
+ that->d_func()->inputContext = QInputContextFactory::create(QLatin1String("hbim"), that);
+ } else if (keys.contains("coefep")) {
+ that->d_func()->inputContext = QInputContextFactory::create(QLatin1String("coefep"), that);
+ } else {
+ for (int c = 0; c < keys.size() && !d->inputContext; ++c) {
+ that->d_func()->inputContext = QInputContextFactory::create(keys[c], that);
+ }
+ }
}
#endif
return d->inputContext;