summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qeasingcurve.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qeasingcurve.cpp')
-rw-r--r--src/corelib/tools/qeasingcurve.cpp11
1 files changed, 11 insertions, 0 deletions
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
@@ -1303,6 +1303,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<QPointF> QEasingCurve::cubicBezierSpline() const
+{
+ return d_ptr->config ? d_ptr->config->_bezierCurves.toList() : QList<QPointF>();
+}
+
+/*!
Returns the type of the easing curve.
*/
QEasingCurve::Type QEasingCurve::type() const