Merge branch 'master' into move-serialization
This commit is contained in:
@@ -49,6 +49,7 @@ TimeBasedWidget::TimeBasedWidget(bool ruler_text_visible, bool ruler_cache_statu
|
||||
ruler_ = new TimeRuler(ruler_text_visible, ruler_cache_status_visible, this);
|
||||
ConnectTimelineView(ruler_);
|
||||
ruler()->SetSnapService(this);
|
||||
connect(ruler(), &TimeRuler::DragMoved, this, static_cast<void(TimeBasedWidget::*)(int)>(&TimeBasedWidget::SetCatchUpScrollValue));
|
||||
connect(ruler(), &TimeRuler::DragReleased, this, static_cast<void(TimeBasedWidget::*)()>(&TimeBasedWidget::StopCatchUpScrollTimer));
|
||||
|
||||
catchup_scroll_timer_ = new QTimer(this);
|
||||
@@ -230,6 +231,15 @@ void TimeBasedWidget::CatchUpTimerTimeout()
|
||||
const CatchUpScrollData &d = it.value();
|
||||
PageScrollInternal(sb, d.maximum, sb->value() + d.value, false);
|
||||
}
|
||||
|
||||
SendCatchUpScrollEvent();
|
||||
}
|
||||
|
||||
void TimeBasedWidget::SendCatchUpScrollEvent()
|
||||
{
|
||||
for (auto v : this->timeline_views_) {
|
||||
v->CatchUpScrollEvent();
|
||||
}
|
||||
}
|
||||
|
||||
void TimeBasedWidget::AutoUpdateTimebase()
|
||||
@@ -283,6 +293,8 @@ void TimeBasedWidget::ScaleChangedEvent(const double &scale)
|
||||
|
||||
UpdateMaximumScroll();
|
||||
|
||||
QMetaObject::invokeMethod(this, &TimeBasedWidget::SendCatchUpScrollEvent, Qt::QueuedConnection);
|
||||
|
||||
toggle_show_all_ = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user