mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 14:50:05 +00:00 
			
		
		
		
	Add whitespace trimming to some settings
This commit is contained in:
		
							parent
							
								
									67706dc186
								
							
						
					
					
						commit
						25fb9bdae0
					
				
					 3 changed files with 25 additions and 1 deletions
				
			
		|  | @ -126,6 +126,15 @@ public: | |||
|     */ | ||||
|    void SetUnit(const double& scale, const std::string& abbreviation); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Enables or disables whitespace trimming of text input. | ||||
|     * Removes whitespace ('\t', '\n', '\v', '\f', '\r', and ' ') at the | ||||
|     * beginning and end of the string from a QLineEdit. | ||||
|     * | ||||
|     * @param trimmingEnabled If trimming should be enabled. | ||||
|     */ | ||||
|    void EnableTrimming(bool trimmingEnabled = true); | ||||
| 
 | ||||
| private: | ||||
|    class Impl; | ||||
|    std::unique_ptr<Impl> p; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak