paramview: changed to static viewer-bound and fixed various scrolling issues

This commit is contained in:
itsmattkc
2020-06-22 00:38:00 +10:00
parent e97b5a9a14
commit 1725f01459
12 changed files with 81 additions and 70 deletions
+10
View File
@@ -31,12 +31,22 @@ class KeyframeView : public KeyframeViewBase
public:
KeyframeView(QWidget* parent = nullptr);
void SetMaxScroll(int i)
{
max_scroll_ = i;
}
protected:
virtual void wheelEvent(QWheelEvent* event) override;
virtual void SceneRectUpdateEvent(QRectF& rect) override;
public slots:
void AddKeyframe(NodeKeyframePtr key, int y);
private:
int max_scroll_;
};
OLIVE_NAMESPACE_EXIT