timeline: vastly improve behavior when scrolling and zooming

This commit is contained in:
itsmattkc
2023-02-28 20:39:02 -08:00
parent 9ff6e689d6
commit d0f16ef88e
5 changed files with 87 additions and 52 deletions
+5 -1
View File
@@ -141,7 +141,6 @@ protected:
void ConnectTimelineView(TimeBasedView* base);
void SetCatchUpScrollValue(QScrollBar *b, int v, int maximum);
void SetCatchUpScrollValue(int v);
void StopCatchUpScrollTimer(QScrollBar *b);
virtual const QVector<Block*> *GetSnapBlocks() const { return nullptr; }
@@ -169,11 +168,16 @@ protected slots:
StopCatchUpScrollTimer(scrollbar_);
}
void SetCatchUpScrollValue(int v);
signals:
void TimebaseChanged(const rational&);
void ConnectedNodeChanged(ViewerOutput* old, ViewerOutput* now);
protected slots:
virtual void SendCatchUpScrollEvent();
private:
/**
* @brief Set either in or out point to the current playhead