src/hbinput/inputwidgets/hbinputsettingwidget.cpp
changeset 5 627c4a0fd0e7
parent 1 f7ac710697a9
child 6 c3690ec91ef8
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
    26 #include <hbdataform.h>
    26 #include <hbdataform.h>
    27 #include <hbdataformmodel.h>
    27 #include <hbdataformmodel.h>
    28 #include <hbinpututils.h>
    28 #include <hbinpututils.h>
    29 #include <hbinputsettingproxy.h>
    29 #include <hbinputsettingproxy.h>
    30 #include <hbinputpredictionfactory.h>
    30 #include <hbinputpredictionfactory.h>
       
    31 #include <QtAlgorithms>
    31 
    32 
    32 #include "hbinputsettingwidget.h"
    33 #include "hbinputsettingwidget.h"
    33 #include "hbinputcheckboxlist_p.h"
    34 #include "hbinputcheckboxlist_p.h"
    34 
    35 
    35 const QString statusOff = QObject::tr("Off");
    36 const QString statusOff = QObject::tr("Off");
    36 const QString statusOn = QObject::tr("On");
    37 const QString statusOn = QObject::tr("On");
    37 const QString bestPrediction = QObject::tr("Best prediction");
    38 const QString bestPrediction = QObject::tr("Best prediction");
    38 const QString exactTyping = QObject::tr("Exact typing");
    39 const QString exactTyping = QObject::tr("Exact typing");
       
    40 
    39 
    41 
    40 /// @cond
    42 /// @cond
    41 
    43 
    42 class HbInputSettingWidgetPrivate
    44 class HbInputSettingWidgetPrivate
    43 {
    45 {
   223 /*!
   225 /*!
   224 Fills given list with language names in the language list
   226 Fills given list with language names in the language list
   225 */
   227 */
   226 void HbInputSettingWidgetPrivate::fillLanguageList(QStringList &list, QList<HbInputLanguage> &languageList, const QString &replace)
   228 void HbInputSettingWidgetPrivate::fillLanguageList(QStringList &list, QList<HbInputLanguage> &languageList, const QString &replace)
   227 {
   229 {
   228     foreach(HbInputLanguage language, languageList) {
   230     foreach(HbInputLanguage language, languageList)  {
   229         QString langName = language.localisedName();
   231         QString langName = language.localisedName();
   230         if (langName.length() == 0) {
   232         if (langName.length() == 0) {
   231             langName = replace;
   233             langName = replace;
   232         }
   234         }
   233         list << langName;
   235         list << langName;