mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 10:50:04 +00:00 
			
		
		
		
	Make animation dock follow default timezones
This commit is contained in:
		
							parent
							
								
									4306bb09ae
								
							
						
					
					
						commit
						26e24da4b5
					
				
					 8 changed files with 205 additions and 47 deletions
				
			
		|  | @ -2,6 +2,10 @@ | |||
| 
 | ||||
| #include <chrono> | ||||
| 
 | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/tz.h> | ||||
| #endif | ||||
| 
 | ||||
| #include <QDateTime> | ||||
| 
 | ||||
| namespace scwx | ||||
|  | @ -11,6 +15,12 @@ namespace qt | |||
| namespace util | ||||
| { | ||||
| 
 | ||||
| #if (__cpp_lib_chrono >= 201907L) | ||||
| using local_days = std::chrono::local_days; | ||||
| #else | ||||
| using local_days = date::local_days; | ||||
| #endif | ||||
| 
 | ||||
| /**
 | ||||
|  * @brief Convert QDate to std::chrono::sys_days. | ||||
|  * | ||||
|  | @ -20,6 +30,15 @@ namespace util | |||
|  */ | ||||
| std::chrono::sys_days SysDays(const QDate& date); | ||||
| 
 | ||||
| /**
 | ||||
|  * @brief Convert QDate to std::chrono::local_days. | ||||
|  * | ||||
|  * @param [in] date Date to convert | ||||
|  * | ||||
|  * @return Days | ||||
|  */ | ||||
| local_days LocalDays(const QDate& date); | ||||
| 
 | ||||
| } // namespace util
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak