securitydialogs/secuinotifications/secuinotificationdialogplugin/src/secuinotificationcontentwidget.cpp
changeset 66 67b3e3c1fc87
parent 53 25dd1e8b2663
equal deleted inserted replaced
63:989397f9511c 66:67b3e3c1fc87
   184 				RDEBUG("queryType", queryType);
   184 				RDEBUG("queryType", queryType);
   185 				codeTop->setInputMethodHints(Qt::ImhDigitsOnly);	// default
   185 				codeTop->setInputMethodHints(Qt::ImhDigitsOnly);	// default
   186  		    if (queryType & ESecUiAlphaSupported)
   186  		    if (queryType & ESecUiAlphaSupported)
   187 		    	{
   187 		    	{
   188 					RDEBUG("ESecUiAlphaSupported", ESecUiAlphaSupported);
   188 					RDEBUG("ESecUiAlphaSupported", ESecUiAlphaSupported);
   189  	    		codeTop->setInputMethodHints(Qt::ImhNone);
   189  	    		codeTop->setInputMethodHints(Qt::ImhPreferNumbers);	// all queries start with numbers, even if allow alpha. (old value was 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::Password);	// instead of PasswordEchoOnEdit
   194  	    		codeTop->setEchoMode(HbLineEdit::Password);	// instead of PasswordEchoOnEdit
   279 		        codeBottom->setMaxLength(lMaxLength);
   279 		        codeBottom->setMaxLength(lMaxLength);
   280 	    		codeBottom->setInputMethodHints(Qt::ImhDigitsOnly);	// default
   280 	    		codeBottom->setInputMethodHints(Qt::ImhDigitsOnly);	// default
   281 	 		    if (queryType & ESecUiAlphaSupported)
   281 	 		    if (queryType & ESecUiAlphaSupported)
   282 			    	{
   282 			    	{
   283 			    	RDEBUG("setInputMethodHints", 0);
   283 			    	RDEBUG("setInputMethodHints", 0);
   284 	 	    		codeBottom->setInputMethodHints(Qt::ImhNone);
   284 	 	    		codeBottom->setInputMethodHints(Qt::ImhPreferNumbers);	// all queries start with numbers, even if allow alpha. (old value was 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::Password);	// this will also remove predictive, which is what we want 	(don't use PasswordEchoOnEdit)
   289 	 	    		codeBottom->setEchoMode(HbLineEdit::Password);	// this will also remove predictive, which is what we want 	(don't use PasswordEchoOnEdit)