timebasedwidget: move center scroll functionality to base class so widgets like

Viewer can use it
This commit is contained in:
itsmattkc
2020-02-17 15:21:10 +11:00
parent 139127ed3c
commit 6eeae7b15e
7 changed files with 40 additions and 28 deletions
+8
View File
@@ -26,6 +26,8 @@ public:
void ConnectViewerNode(ViewerOutput *node);
void SetScaleAndCenterOnPlayhead(const double& scale);
public slots:
// FIXME: Rename this to SetTimestamp to reduce confusion
void SetTime(int64_t timestamp);
@@ -70,6 +72,12 @@ protected:
virtual void resizeEvent(QResizeEvent *event) override;
protected slots:
/**
* @brief Slot to center the horizontal scroll bar on the playhead's current position
*/
void CenterScrollOnPlayhead();
signals:
void TimeChanged(const int64_t&);