src/gui/kernel/qapplication.cpp
changeset 23 89e065397ea6
parent 22 79de32ba3296
child 25 e24348a560a6
equal deleted inserted replaced
22:79de32ba3296 23:89e065397ea6
  5253         // fallback to default X Input Method.
  5253         // fallback to default X Input Method.
  5254         if (!qic)
  5254         if (!qic)
  5255             qic = QInputContextFactory::create(QLatin1String("xim"), that);
  5255             qic = QInputContextFactory::create(QLatin1String("xim"), that);
  5256         that->d_func()->inputContext = qic;
  5256         that->d_func()->inputContext = qic;
  5257     }
  5257     }
  5258 #elif defined(Q_OS_SYMBIAN)
  5258 #elif defined(Q_WS_S60)
  5259     if (!d->inputContext) {
  5259     if (!d->inputContext) {
  5260         QApplication *that = const_cast<QApplication *>(this);
  5260         QApplication *that = const_cast<QApplication *>(this);
  5261         const QStringList keys = QInputContextFactory::keys();
  5261         that->d_func()->inputContext = QInputContextFactory::create(QString::fromLatin1("coefep"), that);
  5262         // Try hbim and coefep first, then try others.
       
  5263         if (keys.contains("hbim")) {
       
  5264             that->d_func()->inputContext = QInputContextFactory::create(QLatin1String("hbim"), that);
       
  5265         } else if (keys.contains("coefep")) {
       
  5266             that->d_func()->inputContext = QInputContextFactory::create(QLatin1String("coefep"), that);
       
  5267         } else {
       
  5268             for (int c = 0; c < keys.size() && !d->inputContext; ++c) {
       
  5269                 that->d_func()->inputContext = QInputContextFactory::create(keys[c], that);
       
  5270             }
       
  5271         }
       
  5272     }
  5262     }
  5273 #endif
  5263 #endif
  5274     return d->inputContext;
  5264     return d->inputContext;
  5275 }
  5265 }
  5276 
  5266