diff --git a/qmlplugin/declarativechart.cpp b/qmlplugin/declarativechart.cpp index f0da8c9..eb6f2ff 100644 --- a/qmlplugin/declarativechart.cpp +++ b/qmlplugin/declarativechart.cpp @@ -27,7 +27,7 @@ DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent) : QDeclarativeItem(parent), m_chart(new QChart(this)) { -// m_chart->setAnimationOptions(QChart::SeriesAnimations); + m_chart->setAnimationOptions(QChart::SeriesAnimations); setFlag(QGraphicsItem::ItemHasNoContents, false); } diff --git a/qmlplugin/declarativechart.h b/qmlplugin/declarativechart.h index 4a81852..3e54d74 100644 --- a/qmlplugin/declarativechart.h +++ b/qmlplugin/declarativechart.h @@ -27,6 +27,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE +// TODO: Derive from QChart for easier definition of properties? class DeclarativeChart : public QDeclarativeItem // TODO: for QTQUICK2: extend QQuickPainterItem instead //class DeclarativeChart : public QQuickPaintedItem, public Chart diff --git a/test/qmlchart/qml/qmlchart/main.qml b/test/qmlchart/qml/qmlchart/main.qml index 0c89c37..030d695 100644 --- a/test/qmlchart/qml/qmlchart/main.qml +++ b/test/qmlchart/qml/qmlchart/main.qml @@ -100,6 +100,7 @@ Rectangle { points: [ XyPoint { x: 0.0; y: 0.3 }, XyPoint { x: 1.1; y: 3.2 }, + XyPoint { x: 2.17; y: 2.15 }, XyPoint { x: 4.17; y: 3.15 } ] }