point.h2 = QPointF(x + m_grabOffsetX, y + m_grabOffsetY);
}
m_spline.setPoint(m_currentPointIndex, point);
-
+
//d->m_draggedAwayPointIndex = -1;
m_mode = ModeDrag;
}
x = qBound(leftX, x, rightX);
y = qBound(0., y, 1.);
+
+ // move handles by same offset
+ point.h1 += QPointF(x, y) - point.p;
+ point.h2 += QPointF(x, y) - point.p;
+
point.p = QPointF(x, y);
break;
case PTypeH2: