From b2aac995b93b2663487cb6c8240d22cf1e103e7d Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 18 Nov 2011 17:32:47 +0100 Subject: adding a getter cubicBezierSpline() to QEasingCurve Change-Id: Ida722f013613d8633867a902660da30d28aeb918 Reviewed-by: Aaron Kennedy --- src/corelib/tools/qeasingcurve.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/corelib/tools/qeasingcurve.cpp') diff --git a/src/corelib/tools/qeasingcurve.cpp b/src/corelib/tools/qeasingcurve.cpp index a1b51e6f9a..4337c4a594 100644 --- a/src/corelib/tools/qeasingcurve.cpp +++ b/src/corelib/tools/qeasingcurve.cpp @@ -1302,6 +1302,17 @@ void QEasingCurve::addTCBSegment(const QPointF &nextPoint, qreal t, qreal c, qre } +/*! + + Returns the cubicBezierSpline that defines a custom easing curve. + If the easing curve does not have a custom bezier easing curve the list + is empty. + */ +QList QEasingCurve::cubicBezierSpline() const +{ + return d_ptr->config ? d_ptr->config->_bezierCurves.toList() : QList(); +} + /*! Returns the type of the easing curve. */ -- cgit v1.2.3