mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	fixed naming typo (Abbreiation)
This commit is contained in:
		
							parent
							
								
									83857575ad
								
							
						
					
					
						commit
						54748ce812
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -56,7 +56,7 @@ public: | |||
|    std::function<T(const std::string&)> mapToValue_ {nullptr}; | ||||
| 
 | ||||
|    double unitScale_ {1}; | ||||
|    const std::string * unitAbbreiation_ {nullptr}; | ||||
|    const std::string * unitAbbreviation_ {nullptr}; | ||||
|    bool unitEnabled_ {false}; | ||||
| }; | ||||
| 
 | ||||
|  | @ -484,7 +484,7 @@ void SettingsInterface<T>::SetUnit(const double&      scale, | |||
|                                    const std::string& abbreviation) | ||||
| { | ||||
|    p->unitScale_       = scale; | ||||
|    p->unitAbbreiation_ = &abbreviation; | ||||
|    p->unitAbbreviation_ = &abbreviation; | ||||
|    p->unitEnabled_     = true; | ||||
|    p->UpdateEditWidget(); | ||||
|    p->UpdateUnitLabel(); | ||||
|  | @ -604,7 +604,7 @@ void SettingsInterface<T>::Impl::UpdateUnitLabel() | |||
|       return; | ||||
|    } | ||||
| 
 | ||||
|    unitLabel_->setText(QString::fromStdString(*unitAbbreiation_)); | ||||
|    unitLabel_->setText(QString::fromStdString(*unitAbbreviation_)); | ||||
| } | ||||
| 
 | ||||
| template<class T> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak