ui: merged nodeview/timelineview scrolling code

Greatly improves code quality and maintainability
This commit is contained in:
itsmattkc
2021-05-10 11:15:37 +10:00
parent 1c983f6b8c
commit 94b2cebeea
11 changed files with 105 additions and 130 deletions
+1 -3
View File
@@ -50,8 +50,6 @@ public:
const double& GetYScale() const;
void SetYScale(const double& y_scale);
static bool WheelEventIsAZoomEvent(QWheelEvent* event);
bool IsDraggingPlayhead() const
{
return dragging_playhead_;
@@ -78,7 +76,7 @@ protected:
virtual void VerticalScaleChangedEvent(double scale);
bool HandleZoomFromScroll(QWheelEvent* event);
virtual void ZoomIntoCursorPosition(QWheelEvent *event, double multiplier, const QPointF &cursor_pos) override;
rational GetPlayheadTime() const;