From 366c5163e81aefe37c15aff3ce2196a3f9783582 Mon Sep 17 00:00:00 2001 From: Marek Rosa Date: Tue, 13 Mar 2012 09:20:05 +0200 Subject: Added support for adding and removing data with model. Updated the example --- src/splinechart/splinechartitem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/splinechart/splinechartitem.cpp') diff --git a/src/splinechart/splinechartitem.cpp b/src/splinechart/splinechartitem.cpp index cc4d5bd0..06ee33ac 100644 --- a/src/splinechart/splinechartitem.cpp +++ b/src/splinechart/splinechartitem.cpp @@ -31,7 +31,11 @@ QPointF SplineChartItem::calculateGeometryControlPoint(int index) const void SplineChartItem::setGeometry(QVector& points) { - if(points.size()==0) return; + if(points.size()==0) + { + XYChartItem::setGeometry(points); + return; + } QPainterPath splinePath; const QPointF& point = points.at(0); -- cgit v1.2.3