src/hbinput/inputwidgets/hbinputcommondialogs.cpp
changeset 28 b7da29130b0e
parent 6 c3690ec91ef8
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
    32 #include <hblistwidgetitem.h>
    32 #include <hblistwidgetitem.h>
    33 #include <hbinpututils.h>
    33 #include <hbinpututils.h>
    34 #include <hbinputsettingproxy.h>
    34 #include <hbinputsettingproxy.h>
    35 #include <hbinputmethod.h>
    35 #include <hbinputmethod.h>
    36 #include <hbinputregioncollector_p.h>
    36 #include <hbinputregioncollector_p.h>
       
    37 #include <hbpopup_p.h>
    37 
    38 
    38 /// @cond
    39 /// @cond
    39 
    40 
    40 bool caseInsensitiveLessThanForHbInputLanguage(const HbInputLanguage &s1, const HbInputLanguage &s2)
    41 bool caseInsensitiveLessThanForHbInputLanguage(const HbInputLanguage &s1, const HbInputLanguage &s2)
    41 {
    42 {
    55     HbSelectionDialog *langDialog = new HbSelectionDialog();
    56     HbSelectionDialog *langDialog = new HbSelectionDialog();
    56     langDialog->setObjectName("Language dialog");
    57     langDialog->setObjectName("Language dialog");
    57 
    58 
    58     // Make sure the language dialog never steals focus.
    59     // Make sure the language dialog never steals focus.
    59     langDialog->setFlag(QGraphicsItem::ItemIsPanel, true);
    60     langDialog->setFlag(QGraphicsItem::ItemIsPanel, true);
       
    61     HbPopupPrivate::d_ptr(langDialog)->mActivePopup = false;
    60     langDialog->setActive(false);
    62     langDialog->setActive(false);
    61 
    63 
    62     HbInputSettingProxy *settings = HbInputSettingProxy::instance();
    64     HbInputSettingProxy *settings = HbInputSettingProxy::instance();
    63     HbInputLanguage currentLang = settings->globalInputLanguage();
    65     HbInputLanguage currentLang = settings->globalInputLanguage();
    64     QList<HbInputLanguage> languages;
    66     QList<HbInputLanguage> languages;
   125     HbSelectionDialog *methodDialog = new HbSelectionDialog();
   127     HbSelectionDialog *methodDialog = new HbSelectionDialog();
   126     methodDialog->setObjectName("Input method dialog");
   128     methodDialog->setObjectName("Input method dialog");
   127 
   129 
   128     // Make sure the language dialog never steals focus.
   130     // Make sure the language dialog never steals focus.
   129     methodDialog->setFlag(QGraphicsItem::ItemIsPanel, true);
   131     methodDialog->setFlag(QGraphicsItem::ItemIsPanel, true);
       
   132     HbPopupPrivate::d_ptr(methodDialog)->mActivePopup = false;
   130     methodDialog->setActive(false);
   133     methodDialog->setActive(false);
   131 
   134 
   132     QList<HbInputMethodDescriptor> customList = HbInputMethod::listCustomInputMethods();
   135     QList<HbInputMethodDescriptor> customList = HbInputMethod::listCustomInputMethods();
   133 
   136 
   134     QList<HbListWidgetItem *> listItems;
   137     QList<HbListWidgetItem *> listItems;