mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Refactor clock format to wxdata
This commit is contained in:
		
							parent
							
								
									bb287dad9c
								
							
						
					
					
						commit
						a7cb459e20
					
				
					 6 changed files with 42 additions and 33 deletions
				
			
		|  | @ -608,17 +608,17 @@ void SettingsDialogImpl::SetupGeneralTab() | |||
|    defaultAlertAction_.SetEditWidget(self_->ui->defaultAlertActionComboBox); | ||||
|    defaultAlertAction_.SetResetButton(self_->ui->resetDefaultAlertActionButton); | ||||
| 
 | ||||
|    for (const auto& clockFormat : types::ClockFormatIterator()) | ||||
|    for (const auto& clockFormat : scwx::util::ClockFormatIterator()) | ||||
|    { | ||||
|       self_->ui->clockFormatComboBox->addItem( | ||||
|          QString::fromStdString(types::GetClockFormatName(clockFormat))); | ||||
|          QString::fromStdString(scwx::util::GetClockFormatName(clockFormat))); | ||||
|    } | ||||
| 
 | ||||
|    clockFormat_.SetSettingsVariable(generalSettings.clock_format()); | ||||
|    clockFormat_.SetMapFromValueFunction( | ||||
|       SCWX_ENUM_MAP_FROM_VALUE(types::ClockFormat, | ||||
|                                types::ClockFormatIterator(), | ||||
|                                types::GetClockFormatName)); | ||||
|       SCWX_ENUM_MAP_FROM_VALUE(scwx::util::ClockFormat, | ||||
|                                scwx::util::ClockFormatIterator(), | ||||
|                                scwx::util::GetClockFormatName)); | ||||
|    clockFormat_.SetMapToValueFunction( | ||||
|       [](std::string text) -> std::string | ||||
|       { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat