diff options
Diffstat (limited to 'src/charts/qchart.cpp')
-rw-r--r-- | src/charts/qchart.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/charts/qchart.cpp b/src/charts/qchart.cpp index 7ac9d552..cca9b166 100644 --- a/src/charts/qchart.cpp +++ b/src/charts/qchart.cpp @@ -85,6 +85,16 @@ QT_CHARTS_BEGIN_NAMESPACE */ /*! + \property QChart::animationDuration + The duration of the animation for the chart. + */ + +/*! + \property QChart::animationEasingCurve + The easing curve of the animation for the chart. + */ + +/*! \property QChart::backgroundVisible Specifies whether the chart background is visible or not. \sa setBackgroundBrush(), setBackgroundPen(), plotAreaBackgroundVisible @@ -595,6 +605,26 @@ QChart::AnimationOptions QChart::animationOptions() const return d_ptr->m_presenter->animationOptions(); } +void QChart::setAnimationDuration(int msecs) +{ + d_ptr->m_presenter->setAnimationDuration(msecs); +} + +int QChart::animationDuration() const +{ + return d_ptr->m_presenter->animationDuration(); +} + +void QChart::setAnimationEasingCurve(const QEasingCurve &curve) +{ + d_ptr->m_presenter->setAnimationEasingCurve(curve); +} + +QEasingCurve QChart::animationEasingCurve() const +{ + return d_ptr->m_presenter->animationEasingCurve(); +} + /*! Scrolls the visible area of the chart by the distance defined in the \a dx and \a dy. |