mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	citra_qt: Add length validation
This commit is contained in:
		
							parent
							
								
									5407ed8b5e
								
							
						
					
					
						commit
						dcaf4a8e83
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -14,6 +14,8 @@ QtKeyboardValidator::QtKeyboardValidator(QtKeyboard* keyboard_) : keyboard(keybo | |||
| 
 | ||||
| QtKeyboardValidator::State QtKeyboardValidator::validate(QString& input, int& pos) const { | ||||
|     if (keyboard->ValidateFilters(input.toStdString()) == Frontend::ValidationError::None) { | ||||
|         if (input.size() > keyboard->config.max_text_length) | ||||
|             return State::Invalid; | ||||
|         return State::Acceptable; | ||||
|     } else { | ||||
|         return State::Invalid; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue