equal
deleted
inserted
replaced
27 #include <telconfigcrkeys.h> // KCRUidTelephonyConfiguration |
27 #include <telconfigcrkeys.h> // KCRUidTelephonyConfiguration |
28 #include <centralrepository.h> |
28 #include <centralrepository.h> |
29 #include <HbNotificationDialog> |
29 #include <HbNotificationDialog> |
30 #include <commonphoneparser.h> // Common phone number validity checker |
30 #include <commonphoneparser.h> // Common phone number validity checker |
31 #include <xqconversions.h> |
31 #include <xqconversions.h> |
|
32 #include <HbEditorInterface> |
32 |
33 |
33 // USER INCLUDES |
34 // USER INCLUDES |
34 #include "debugtraces.h" |
35 #include "debugtraces.h" |
35 #include "msgunieditoraddress.h" |
36 #include "msgunieditoraddress.h" |
36 #include "msgunieditorlineedit.h" |
37 #include "msgunieditorlineedit.h" |
77 mAddressEdit->setMaxRows(40); |
78 mAddressEdit->setMaxRows(40); |
78 connect(mAddressEdit, SIGNAL(contentsChanged(const QString&)), |
79 connect(mAddressEdit, SIGNAL(contentsChanged(const QString&)), |
79 this, SLOT(onContentsChanged(const QString&))); |
80 this, SLOT(onContentsChanged(const QString&))); |
80 |
81 |
81 mAddressEdit->setInputMethodHints(Qt::ImhPreferNumbers); |
82 mAddressEdit->setInputMethodHints(Qt::ImhPreferNumbers); |
|
83 |
|
84 //To allow only latin char(s) in address fields. |
|
85 HbEditorInterface editorInterface(mAddressEdit); |
|
86 editorInterface.setInputConstraints(HbEditorConstraintLatinAlphabetOnly); |
82 } |
87 } |
83 |
88 |
84 MsgUnifiedEditorAddress::~MsgUnifiedEditorAddress() |
89 MsgUnifiedEditorAddress::~MsgUnifiedEditorAddress() |
85 { |
90 { |
86 //TODO: Should remove this code depending on orbit's reply whether it is needed |
91 //TODO: Should remove this code depending on orbit's reply whether it is needed |