@@ -146,25 +146,6 void QAreaSeries::setPointsVisible(bool visible) | |||
|
146 | 146 | } |
|
147 | 147 | } |
|
148 | 148 | |
|
149 | //bool QAreaSeries::setModel(QAbstractItemModel* model) | |
|
150 | //{ | |
|
151 | // m_upperSeries->setModel(model); | |
|
152 | // if (m_lowerSeries) | |
|
153 | // m_lowerSeries->setModel(model); | |
|
154 | // return true; | |
|
155 | //} | |
|
156 | ||
|
157 | //void QAreaSeries::setModelMappingUpper(int modelX, int modelY, Qt::Orientation orientation) | |
|
158 | //{ | |
|
159 | // m_upperSeries->setModelMapping(modelX, modelY, orientation); | |
|
160 | //} | |
|
161 | ||
|
162 | //void QAreaSeries::setModelMappingLower(int modelX, int modelY, Qt::Orientation orientation) | |
|
163 | //{ | |
|
164 | // if (m_lowerSeries) | |
|
165 | // m_lowerSeries->setModelMapping(modelX, modelY, orientation); | |
|
166 | //} | |
|
167 | ||
|
168 | 149 | #include "moc_qareaseries.cpp" |
|
169 | 150 | |
|
170 | 151 | QTCOMMERCIALCHART_END_NAMESPACE |
@@ -51,10 +51,6 public: // from QChartSeries | |||
|
51 | 51 | void setPointsVisible(bool visible); |
|
52 | 52 | bool pointsVisible() const { return m_pointsVisible; } |
|
53 | 53 | |
|
54 | // bool setModel(QAbstractItemModel* model); | |
|
55 | // void setModelMappingUpper(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); | |
|
56 | // void setModelMappingLower(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); | |
|
57 | ||
|
58 | 54 | Q_SIGNALS: |
|
59 | 55 | void updated(); |
|
60 | 56 | void clicked(const QPointF &point); |
@@ -37,19 +37,12 public: | |||
|
37 | 37 | QSplineSeries(QObject *parent = 0); |
|
38 | 38 | QSeriesType type() const {return QSeries::SeriesTypeSpline;} |
|
39 | 39 | |
|
40 | // int count() const { return m_x.size(); } | |
|
41 | 40 | QPointF controlPoint(int index) const {return m_controlPoints[index];} |
|
42 | 41 | bool setModel(QAbstractItemModel *model); |
|
43 | 42 | |
|
44 | 43 | void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); |
|
45 | 44 | void setModelMappingShift(int first, int count); |
|
46 | 45 | |
|
47 | // TODO: allow the user to set custom control points | |
|
48 | // void setCustomControlPoints(QList<QPointsF> controlPoints); | |
|
49 | // bool calculateControlPointsAutomatically(); | |
|
50 | // void setCalculateControlPointsAutomatically(); | |
|
51 | ||
|
52 | ||
|
53 | 46 | private: |
|
54 | 47 | void calculateControlPoints(); |
|
55 | 48 | QList<qreal> getFirstControlPoints(QList<qreal> rhs); |
@@ -63,7 +63,7 public: | |||
|
63 | 63 | QAbstractItemModel* model() const { return m_model; } |
|
64 | 64 | |
|
65 | 65 | virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); |
|
66 |
virtual void setModelMapping |
|
|
66 | virtual void setModelMappingRange(int first, int count = 0); | |
|
67 | 67 | int mapFirst() const { return m_mapFirst; } |
|
68 | 68 | |
|
69 | 69 | private Q_SLOTS: |
General Comments 0
You need to be logged in to leave comments.
Login now