summaryrefslogtreecommitdiffstats
path: root/src/splinechart/splinechartitem.cpp
diff options
context:
space:
mode:
authorMarek Rosa <marek.rosa@digia.com>2012-03-13 09:20:05 +0200
committerMarek Rosa <marek.rosa@digia.com>2012-03-13 12:17:29 +0200
commit366c5163e81aefe37c15aff3ce2196a3f9783582 (patch)
treef3701888553cde7b231b3b8a672a998b5af7e049 /src/splinechart/splinechartitem.cpp
parente21e24989fda288a6540dda6941c67754b400c74 (diff)
Added support for adding and removing data with model. Updated the example
Diffstat (limited to 'src/splinechart/splinechartitem.cpp')
-rw-r--r--src/splinechart/splinechartitem.cpp6
1 files changed, 5 insertions, 1 deletions
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<QPointF>& points)
{
- if(points.size()==0) return;
+ if(points.size()==0)
+ {
+ XYChartItem::setGeometry(points);
+ return;
+ }
QPainterPath splinePath;
const QPointF& point = points.at(0);