mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:10:04 +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
				
			
		|  | @ -5,6 +5,7 @@ | |||
| #include <scwx/qt/types/alert_types.hpp> | ||||
| #include <scwx/qt/types/qt_types.hpp> | ||||
| #include <scwx/qt/types/time_types.hpp> | ||||
| #include <scwx/util/time.hpp> | ||||
| 
 | ||||
| #include <array> | ||||
| 
 | ||||
|  | @ -25,7 +26,7 @@ public: | |||
|    explicit Impl() | ||||
|    { | ||||
|       std::string defaultClockFormatValue = | ||||
|          types::GetClockFormatName(types::ClockFormat::_24Hour); | ||||
|          scwx::util::GetClockFormatName(scwx::util::ClockFormat::_24Hour); | ||||
|       std::string defaultDefaultAlertActionValue = | ||||
|          types::GetAlertActionName(types::AlertAction::Go); | ||||
|       std::string defaultDefaultTimeZoneValue = | ||||
|  | @ -78,9 +79,9 @@ public: | |||
|       loopTime_.SetMaximum(1440); | ||||
| 
 | ||||
|       clockFormat_.SetValidator( | ||||
|          SCWX_SETTINGS_ENUM_VALIDATOR(types::ClockFormat, | ||||
|                                       types::ClockFormatIterator(), | ||||
|                                       types::GetClockFormatName)); | ||||
|          SCWX_SETTINGS_ENUM_VALIDATOR(scwx::util::ClockFormat, | ||||
|                                       scwx::util::ClockFormatIterator(), | ||||
|                                       scwx::util::GetClockFormatName)); | ||||
|       defaultAlertAction_.SetValidator( | ||||
|          SCWX_SETTINGS_ENUM_VALIDATOR(types::AlertAction, | ||||
|                                       types::AlertActionIterator(), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat