messagingapp/msgui/unifiededitor/src/msgunieditoraddress.cpp
changeset 48 4f501b74aeb1
parent 41 25fe1fe642e3
child 51 3507212d340e
--- a/messagingapp/msgui/unifiededitor/src/msgunieditoraddress.cpp	Tue Jul 13 22:09:22 2010 +0530
+++ b/messagingapp/msgui/unifiededitor/src/msgunieditoraddress.cpp	Sun Jul 25 18:59:19 2010 +0530
@@ -29,6 +29,7 @@
 #include <HbNotificationDialog>
 #include <commonphoneparser.h>      // Common phone number validity checker
 #include <xqconversions.h>
+#include <HbEditorInterface>
 
 // USER INCLUDES
 #include "debugtraces.h"
@@ -79,6 +80,10 @@
             this, SLOT(onContentsChanged(const QString&)));
 
     mAddressEdit->setInputMethodHints(Qt::ImhPreferNumbers);
+    
+    //To allow only latin char(s) in address fields.
+    HbEditorInterface editorInterface(mAddressEdit);
+    editorInterface.setInputConstraints(HbEditorConstraintLatinAlphabetOnly);
 }
 
 MsgUnifiedEditorAddress::~MsgUnifiedEditorAddress()