ui/commandhandlers/commoncommandhandlers/src/glxcommondialogs.cpp
changeset 62 36d93b4dc635
parent 58 383b67fbdb11
child 69 45459746d5e8
--- a/ui/commandhandlers/commoncommandhandlers/src/glxcommondialogs.cpp	Mon Aug 23 18:06:16 2010 +0530
+++ b/ui/commandhandlers/commoncommandhandlers/src/glxcommondialogs.cpp	Sat Sep 04 11:36:24 2010 +0530
@@ -19,6 +19,7 @@
 
 #include <hbaction.h>
 #include <QEventLoop>
+const int MAXSTRINGLENGHT = 256; 
 
 GlxTextInputDialog::GlxTextInputDialog(bool disableOkForEmptyText) 
     : mDialog ( NULL ),
@@ -42,6 +43,7 @@
     mDialog->setPromptText(label);
     mDialog->setInputMode(HbInputDialog::TextInput);
     mDialog->setValue(text);
+    mDialog->lineEdit(0)->setMaxLength(MAXSTRINGLENGHT);
     if(mDisableOkForEmptyText){
         connect(mDialog->lineEdit(0), SIGNAL( textChanged (const QString &) ),
                 this, SLOT( textChanged (const QString &)));