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
@@ -90,7 +90,7 @@ protected:
virtual void mouseMoveEvent(QMouseEvent *event) override;
virtual void mouseReleaseEvent(QMouseEvent* event) override;
virtual void wheelEvent(QWheelEvent* event) override;
virtual void ZoomIntoCursorPosition(QWheelEvent *event, double multiplier, const QPointF &cursor_pos) override;
private:
void AttachNodesToCursor(const QVector<Node *> &nodes);
@@ -106,8 +106,6 @@ private:
void ConnectSelectionChangedSignal();
void DisconnectSelectionChangedSignal();
void ZoomIntoCursorPosition(double multiplier, const QPointF &cursor_pos);
void ZoomFromKeyboard(double multiplier);
class NodeViewAttachNodesToCursor : public UndoCommand