phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertquery.cpp
changeset 77 2be0b271d017
parent 72 c76a0b1755b9
--- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertquery.cpp	Fri Sep 17 08:29:19 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertquery.cpp	Mon Oct 04 00:16:48 2010 +0300
@@ -23,6 +23,7 @@
 
 // CONSTANTS 
 const QString KOtherNumber("otherNumber");
+const int KPhoneNumberLength = 100; //from psetconstants.h
 
 CpDivertQuery::CpDivertQuery(PSetCallDivertingWrapper &callDivertingWrapper) :
     m_callDivertingWrapper(callDivertingWrapper),
@@ -224,7 +225,8 @@
     QScopedPointer<HbDialog> dialog(createDialog(heading));
 
     HbLineEdit *editor = new HbLineEdit(dialog.data());
-    editor->setInputMethodHints(Qt::ImhDialableCharactersOnly);    
+    editor->setInputMethodHints(Qt::ImhDialableCharactersOnly);
+    editor->setMaxLength(KPhoneNumberLength);
     //Ownership is transferred
     dialog->setContentWidget(editor);