##// END OF EJS Templates
Fixed broken spline series
Marek Rosa -
r992:e111c2594d21
parent child
Show More
@@ -66,6 +66,21 QPointF QSplineSeries::controlPoint(int index) const
66 66 return d->m_controlPoints[index];
67 67 }
68 68
69 /*!
70 \fn bool QSplineSeries::setModelMappingRange(int first, int count)
71 Allows limiting the model mapping.
72 Parameter \a first specifies which element of the model should be used as a first one of the series.
73 Parameter \a count specifies how many elements should be mapped. If count is not specified (defaults to -1)
74 then all the items following \a first item in a model are used.
75 \sa setModel(), setModelMapping()
76 */
77 void QSplineSeries::setModelMapping(int modelX, int modelY, Qt::Orientation orientation)
78 {
79 Q_D(QSplineSeries);
80 QXYSeries::setModelMapping(modelX, modelY, orientation);
81 d->calculateControlPoints();
82 }
83
69 84 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
70 85
71 86 QSplineSeriesPrivate::QSplineSeriesPrivate(QSplineSeries* q):QLineSeriesPrivate(q)
@@ -179,15 +194,6 void QSplineSeriesPrivate::updateControlPoints()
179 194 }
180 195 }
181 196
182 /*!
183 \fn bool QSplineSeries::setModelMappingRange(int first, int count)
184 Allows limiting the model mapping.
185 Parameter \a first specifies which element of the model should be used as a first one of the series.
186 Parameter \a count specifies how many elements should be mapped. If count is not specified (defaults to -1)
187 then all the items following \a first item in a model are used.
188 \sa setModel(), setModelMapping()
189 */
190
191 197 Chart* QSplineSeriesPrivate::createGraphics(ChartPresenter* presenter)
192 198 {
193 199 Q_Q(QSplineSeries);
@@ -41,6 +41,8 public:
41 41
42 42 QPointF controlPoint(int index) const;
43 43
44 void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical);
45
44 46 private:
45 47 Q_DECLARE_PRIVATE(QSplineSeries);
46 48 Q_DISABLE_COPY(QSplineSeries);
General Comments 0
You need to be logged in to leave comments. Login now