vmbx/vmbxengine/src/vmbxqtuihandler.cpp
changeset 53 25b8d29b7c59
parent 48 78df25012fda
equal deleted inserted replaced
51:12bc758d6a02 53:25b8d29b7c59
   136     iQueryDialog->setPromptText(header);
   136     iQueryDialog->setPromptText(header);
   137 
   137 
   138     // Set HbLineEdit  Content 
   138     // Set HbLineEdit  Content 
   139     iQueryDialog->lineEdit()->setText(aNumber); // default text
   139     iQueryDialog->lineEdit()->setText(aNumber); // default text
   140     iQueryDialog->lineEdit()->setMaxLength(KVmbxPhoneCharMaxLength);
   140     iQueryDialog->lineEdit()->setMaxLength(KVmbxPhoneCharMaxLength);
   141     HbEditorInterface inputMode(iQueryDialog->lineEdit());
   141     iQueryDialog->lineEdit()->setInputMethodHints(
   142     inputMode.setFilter(HbPhoneNumberFilter::instance());
   142         Qt::ImhDialableCharactersOnly);
   143     bool ret = connect(iQueryDialog->lineEdit(), SIGNAL(textChanged(QString)),
   143     bool ret = connect(iQueryDialog->lineEdit(), SIGNAL(textChanged(QString)),
   144         this, SLOT(updatePrimaryAction(QString)));    
   144         this, SLOT(updatePrimaryAction(QString)));    
   145     VMBLOGSTRING2( "VmbxQtUiHandler::showVmbxQueryDialog connect textChanged %d", ret)
   145     VMBLOGSTRING2( "VmbxQtUiHandler::showVmbxQueryDialog connect textChanged %d", ret)
   146     
   146     
   147     DialogWaiter waiter;
   147     DialogWaiter waiter;