mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Fix formatting issues for timezones-for-timeline
This commit is contained in:
		
							parent
							
								
									26e24da4b5
								
							
						
					
					
						commit
						e3cf37f9ed
					
				
					 1 changed files with 17 additions and 18 deletions
				
			
		|  | @ -19,11 +19,11 @@ static const std::string logPrefix_ = "scwx::qt::ui::animation_dock_widget"; | ||||||
| static const auto        logger_    = scwx::util::Logger::Create(logPrefix_); | static const auto        logger_    = scwx::util::Logger::Create(logPrefix_); | ||||||
| 
 | 
 | ||||||
| #if (__cpp_lib_chrono >= 201907L) | #if (__cpp_lib_chrono >= 201907L) | ||||||
|    using local_days  = std::chrono::local_days; | using local_days  = std::chrono::local_days; | ||||||
|    using zoned_time_ = std::chrono::zoned_time<std::chrono::seconds>; | using zoned_time_ = std::chrono::zoned_time<std::chrono::seconds>; | ||||||
| #else | #else | ||||||
|    using local_days  = date::local_days; | using local_days  = date::local_days; | ||||||
|    using zoned_time_ = date::zoned_time<std::chrono::seconds>; | using zoned_time_ = date::zoned_time<std::chrono::seconds>; | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| class AnimationDockWidgetImpl | class AnimationDockWidgetImpl | ||||||
|  | @ -228,20 +228,19 @@ void AnimationDockWidgetImpl::ConnectSignals() | ||||||
|             Q_EMIT self_->DateTimeChanged(GetTimePoint()); |             Q_EMIT self_->DateTimeChanged(GetTimePoint()); | ||||||
|          } |          } | ||||||
|       }); |       }); | ||||||
|    QObject::connect(self_->ui->timeEdit, |    QObject::connect( | ||||||
|                     &QDateTimeEdit::timeChanged, |       self_->ui->timeEdit, | ||||||
|                     self_, |       &QDateTimeEdit::timeChanged, | ||||||
|                     [this](QTime time) |       self_, | ||||||
|                     { |       [this](QTime time) | ||||||
|                        if (time.isValid()) |       { | ||||||
|                        { |          if (time.isValid()) | ||||||
|                           selectedTime_ = |          { | ||||||
|                              std::chrono::duration_cast<std::chrono::seconds>( |             selectedTime_ = std::chrono::duration_cast<std::chrono::seconds>( | ||||||
|                                 std::chrono::milliseconds( |                std::chrono::milliseconds(time.msecsSinceStartOfDay())); | ||||||
|                                    time.msecsSinceStartOfDay())); |             Q_EMIT self_->DateTimeChanged(GetTimePoint()); | ||||||
|                           Q_EMIT self_->DateTimeChanged(GetTimePoint()); |          } | ||||||
|                        } |       }); | ||||||
|                     }); |  | ||||||
| 
 | 
 | ||||||
|    // Loop controls
 |    // Loop controls
 | ||||||
|    QObject::connect( |    QObject::connect( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak