slider: reviewed and conformed code
This commit is contained in:
@@ -112,9 +112,11 @@ SpeedDurationDialog::SpeedDurationDialog(const rational& timebase, const QList<C
|
||||
duration_slider_ = new TimeSlider();
|
||||
duration_slider_->SetTimebase(timebase_);
|
||||
duration_slider_->SetMinimum(1);
|
||||
duration_slider_->SetDefaultValue(Timecode::time_to_timestamp(clips_.first()->length(), timebase_));
|
||||
speed_layout->addWidget(duration_slider_, row, 1);
|
||||
|
||||
// Calculate duration that would occur if the speed was 100%
|
||||
duration_slider_->SetDefaultValue(GetUnadjustedLengthTimestamp(clips_.first()));
|
||||
|
||||
if (same_duration) {
|
||||
duration_slider_->SetValue(Timecode::time_to_timestamp(clips_.first()->length(), timebase_));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user