src/hbplugins/inputmethods/common/hbinputspellquerydialog.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
    93     mSavedFocusObject = focusObject->object();
    93     mSavedFocusObject = focusObject->object();
    94     mSavedEditorText = editorText;
    94     mSavedEditorText = editorText;
    95     mDidHandleFinish = false;
    95     mDidHandleFinish = false;
    96     mainWindow()->setProperty("SpellQueryLaunched", true);
    96     mainWindow()->setProperty("SpellQueryLaunched", true);
    97     open(this,SLOT(dialogClosed(HbAction*)));
    97     open(this,SLOT(dialogClosed(HbAction*)));
    98     mPrimaryAction = qobject_cast<HbAction*>(actions().first()); 
    98     mPrimaryAction = qobject_cast<HbAction*>(actions().first());
       
    99 
       
   100     // Open keypad for the spell query
       
   101     QInputContext *ic = qApp->inputContext();
       
   102     if (ic) {
       
   103         QEvent *event = new QEvent(QEvent::RequestSoftwareInputPanel);
       
   104         ic->filterEvent(event);
       
   105         delete event;
       
   106     }
    99 }
   107 }
   100 
   108 
   101 void HbInputSpellQuery::dialogClosed(HbAction* action)
   109 void HbInputSpellQuery::dialogClosed(HbAction* action)
   102 {
   110 {
   103     mainWindow()->setProperty("SpellQueryLaunched", false);
   111     mainWindow()->setProperty("SpellQueryLaunched", false);