From d397e4be0cff32dd5b4e0e56e6c97564be15f96c 2012-03-05 13:40:11 From: Marek Rosa Date: 2012-03-05 13:40:11 Subject: [PATCH] Minor cleanup --- diff --git a/example/example.pro b/example/example.pro index 738ee74..dc13dc2 100644 --- a/example/example.pro +++ b/example/example.pro @@ -16,6 +16,6 @@ SUBDIRS += linechart \ presenterchart \ chartview \ scatterinteractions \ - splinechart \ + #splinechart \ areachart \ stackedbarchartdrilldown diff --git a/example/splinechart/splinewidget.cpp b/example/splinechart/splinewidget.cpp index 98a65c5..a32f92a 100644 --- a/example/splinechart/splinewidget.cpp +++ b/example/splinechart/splinewidget.cpp @@ -11,7 +11,7 @@ QTCOMMERCIALCHART_USE_NAMESPACE SplineWidget::SplineWidget(QWidget *parent) : QWidget(parent) { - qsrand(time(NULL)); +// qsrand(time(NULL)); //! [1] //create QSplineSeries series = new QSplineSeries; diff --git a/src/splinechart/splinepresenter.cpp b/src/splinechart/splinepresenter.cpp index 1547970..2a4d53c 100644 --- a/src/splinechart/splinepresenter.cpp +++ b/src/splinechart/splinepresenter.cpp @@ -25,7 +25,6 @@ void SplinePresenter::applyGeometry(QVector& points) { if(points.size()==0) return; - qDebug() << "Kueku"; QPainterPath splinePath; const QPointF& point = points.at(0); splinePath.moveTo(point); @@ -37,8 +36,6 @@ void SplinePresenter::applyGeometry(QVector& points) splinePath.cubicTo(calculateGeometryControlPoint(2 * i), calculateGeometryControlPoint(2 * i + 1), point); } - - prepareGeometryChange(); m_path = splinePath; m_rect = splinePath.boundingRect();