@@ -27,7 +27,7 DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent) | |||
|
27 | 27 | : QDeclarativeItem(parent), |
|
28 | 28 | m_chart(new QChart(this)) |
|
29 | 29 | { |
|
30 |
|
|
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now