securitydialogs/secuinotifications/secuinotificationdialogplugin/src/secuinotificationcontentwidget.cpp
changeset 53 25dd1e8b2663
parent 42 82671cd8994b
child 66 67b3e3c1fc87
equal deleted inserted replaced
48:6ed68423b759 53:25dd1e8b2663
   189  	    		codeTop->setInputMethodHints(Qt::ImhNone);
   189  	    		codeTop->setInputMethodHints(Qt::ImhNone);
   190 		  		}
   190 		  		}
   191  		    if (queryType & ESecUiSecretSupported)
   191  		    if (queryType & ESecUiSecretSupported)
   192 		    	{
   192 		    	{
   193 					RDEBUG("ESecUiSecretSupported", ESecUiSecretSupported);
   193 					RDEBUG("ESecUiSecretSupported", ESecUiSecretSupported);
   194  	    		codeTop->setEchoMode(HbLineEdit::PasswordEchoOnEdit);
   194  	    		codeTop->setEchoMode(HbLineEdit::Password);	// instead of PasswordEchoOnEdit
   195 		  		}
   195 		  		}
   196 				RDEBUG("lMaxLength", lMaxLength);
   196 				RDEBUG("lMaxLength", lMaxLength);
   197         if(lMaxLength>2)
   197         if(lMaxLength>2)
   198 	        codeTop->setMaxLength(lMaxLength);
   198 	        codeTop->setMaxLength(lMaxLength);
   199 				
   199 				
   284 	 	    		codeBottom->setInputMethodHints(Qt::ImhNone);
   284 	 	    		codeBottom->setInputMethodHints(Qt::ImhNone);
   285 			  		}
   285 			  		}
   286 	 		    if (queryType & ESecUiSecretSupported)
   286 	 		    if (queryType & ESecUiSecretSupported)
   287 			    	{
   287 			    	{
   288 			    	RDEBUG("ESecUiSecretSupported", 0);
   288 			    	RDEBUG("ESecUiSecretSupported", 0);
   289 	 	    		codeBottom->setEchoMode(HbLineEdit::PasswordEchoOnEdit);	// this will also remove predictive, which is what we want
   289 	 	    		codeBottom->setEchoMode(HbLineEdit::Password);	// this will also remove predictive, which is what we want 	(don't use PasswordEchoOnEdit)
   290 			  		}
   290 			  		}
   291 		    	RDEBUG("connecting", 0);
   291 		    	RDEBUG("connecting", 0);
   292 	        connect(codeBottom, SIGNAL(textChanged(const QString &)), this, SIGNAL(codeBottomChanged(const QString &)));
   292 	        connect(codeBottom, SIGNAL(textChanged(const QString &)), this, SIGNAL(codeBottomChanged(const QString &)));
   293         	connect(codeBottom, SIGNAL(contentsChanged(const QString &)), this, SIGNAL(codeBottomChanged(const QString &)));
   293         	connect(codeBottom, SIGNAL(contentsChanged(const QString &)), this, SIGNAL(codeBottomChanged(const QString &)));
   294 	    		mainLayout->addItem(codeBottom);
   294 	    		mainLayout->addItem(codeBottom);