##// END OF EJS Templates
Minor cleanup
Marek Rosa -
r457:d397e4be0cff
parent child
Show More
@@ -16,6 +16,6 SUBDIRS += linechart \
16 16 presenterchart \
17 17 chartview \
18 18 scatterinteractions \
19 splinechart \
19 #splinechart \
20 20 areachart \
21 21 stackedbarchartdrilldown
@@ -11,7 +11,7 QTCOMMERCIALCHART_USE_NAMESPACE
11 11 SplineWidget::SplineWidget(QWidget *parent)
12 12 : QWidget(parent)
13 13 {
14 qsrand(time(NULL));
14 // qsrand(time(NULL));
15 15 //! [1]
16 16 //create QSplineSeries
17 17 series = new QSplineSeries;
@@ -25,7 +25,6 void SplinePresenter::applyGeometry(QVector<QPointF>& points)
25 25 {
26 26 if(points.size()==0) return;
27 27
28 qDebug() << "Kueku";
29 28 QPainterPath splinePath;
30 29 const QPointF& point = points.at(0);
31 30 splinePath.moveTo(point);
@@ -37,8 +36,6 void SplinePresenter::applyGeometry(QVector<QPointF>& points)
37 36 splinePath.cubicTo(calculateGeometryControlPoint(2 * i), calculateGeometryControlPoint(2 * i + 1), point);
38 37 }
39 38
40
41
42 39 prepareGeometryChange();
43 40 m_path = splinePath;
44 41 m_rect = splinePath.boundingRect();
General Comments 0
You need to be logged in to leave comments. Login now