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