@@ -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); |
General Comments 0
You need to be logged in to leave comments.
Login now