ui/commandhandlers/commoncommandhandlers/src/glxcommondialogs.cpp
changeset 67 199e6e1e0b54
parent 61 743eb0b9959e
child 69 45459746d5e8
--- a/ui/commandhandlers/commoncommandhandlers/src/glxcommondialogs.cpp	Thu Sep 02 20:26:45 2010 +0300
+++ b/ui/commandhandlers/commoncommandhandlers/src/glxcommondialogs.cpp	Fri Sep 17 08:29:24 2010 +0300
@@ -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 &)));