implemented correct value changing in the CurveView widget
This commit is contained in:
@@ -6,12 +6,12 @@
|
||||
#include "common/qtversionabstraction.h"
|
||||
|
||||
CurveView::CurveView(QWidget *parent) :
|
||||
KeyframeViewBase(parent),
|
||||
y_scale_(1.0)
|
||||
KeyframeViewBase(parent)
|
||||
{
|
||||
setAlignment(Qt::AlignLeft | Qt::AlignBottom);
|
||||
setDragMode(RubberBandDrag);
|
||||
setViewportUpdateMode(FullViewportUpdate);
|
||||
SetYAxisEnabled(true);
|
||||
|
||||
text_padding_ = QFontMetricsWidth(fontMetrics(), QStringLiteral("i"));
|
||||
|
||||
@@ -36,12 +36,6 @@ void CurveView::Clear()
|
||||
lines_.clear();
|
||||
}
|
||||
|
||||
void CurveView::SetYScale(const double &y_scale)
|
||||
{
|
||||
y_scale_ = y_scale;
|
||||
viewport()->update();
|
||||
}
|
||||
|
||||
void CurveView::drawBackground(QPainter *painter, const QRectF &rect)
|
||||
{
|
||||
if (timebase().isNull()) {
|
||||
|
||||
@@ -15,8 +15,6 @@ public:
|
||||
|
||||
virtual void Clear() override;
|
||||
|
||||
void SetYScale(const double& y_scale);
|
||||
|
||||
public slots:
|
||||
void AddKeyframe(NodeKeyframePtr key);
|
||||
|
||||
@@ -40,8 +38,6 @@ private:
|
||||
|
||||
int text_padding_;
|
||||
|
||||
double y_scale_;
|
||||
|
||||
int minimum_grid_space_;
|
||||
|
||||
QList<QGraphicsLineItem*> lines_;
|
||||
|
||||
Reference in New Issue
Block a user