Enable marker snapping
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user