##// END OF EJS Templates
Enabled animations on QML
Tero Ahola -
r885:7d3819363bdf
parent child
Show More
@@ -27,7 +27,7 DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent)
27 27 : QDeclarativeItem(parent),
28 28 m_chart(new QChart(this))
29 29 {
30 // m_chart->setAnimationOptions(QChart::SeriesAnimations);
30 m_chart->setAnimationOptions(QChart::SeriesAnimations);
31 31 setFlag(QGraphicsItem::ItemHasNoContents, false);
32 32 }
33 33
@@ -27,6 +27,7
27 27
28 28 QTCOMMERCIALCHART_BEGIN_NAMESPACE
29 29
30 // TODO: Derive from QChart for easier definition of properties?
30 31 class DeclarativeChart : public QDeclarativeItem
31 32 // TODO: for QTQUICK2: extend QQuickPainterItem instead
32 33 //class DeclarativeChart : public QQuickPaintedItem, public Chart
@@ -100,6 +100,7 Rectangle {
100 100 points: [
101 101 XyPoint { x: 0.0; y: 0.3 },
102 102 XyPoint { x: 1.1; y: 3.2 },
103 XyPoint { x: 2.17; y: 2.15 },
103 104 XyPoint { x: 4.17; y: 3.15 }
104 105 ]
105 106 }
General Comments 0
You need to be logged in to leave comments. Login now