Enable marker snapping

This commit is contained in:
Thomas Wilshaw
2021-11-08 20:51:38 +00:00
parent b4bfee1193
commit 3a5f0134af
2 changed files with 20 additions and 6 deletions
+5 -3
View File
@@ -49,6 +49,8 @@ public:
void SetSnapService(SnapService* service);
SnapService* GetSnapService() { return snap_service_; };
bool IsDraggingPlayhead() const
{
return dragging_;
@@ -66,6 +68,9 @@ public:
void SeekToScreenPoint(int screen);
int TimeToScreen(const rational& time) const;
rational ScreenToTime(int x) const;
public slots:
void SetTime(const rational &r);
@@ -91,9 +96,6 @@ protected:
TimelinePoints* timeline_points() const;
int TimeToScreen(const rational& time) const;
rational ScreenToTime(int x) const;
void DrawPlayhead(QPainter* p, int x, int y);
inline const int& text_height() const {