@@ -44,7 +44,6 m_dirty(true) | |||
|
44 | 44 | QObject::connect(series->d_func(),SIGNAL(pointReplaced(int)),this,SLOT(handlePointReplaced(int))); |
|
45 | 45 | QObject::connect(series->d_func(),SIGNAL(pointAdded(int)),this,SLOT(handlePointAdded(int))); |
|
46 | 46 | QObject::connect(series->d_func(),SIGNAL(pointRemoved(int)),this,SLOT(handlePointRemoved(int))); |
|
47 | QObject::connect(series->d_func(),SIGNAL(reinitialized()),this,SLOT(handleReinitialized())); | |
|
48 | 47 | QObject::connect(this,SIGNAL(clicked(QPointF)),series,SIGNAL(clicked(QPointF))); |
|
49 | 48 | } |
|
50 | 49 | |
@@ -194,17 +193,6 void XYChart::handlePointReplaced(int index) | |||
|
194 | 193 | updateChart(m_points,points,index); |
|
195 | 194 | } |
|
196 | 195 | |
|
197 | void XYChart::handleReinitialized() | |
|
198 | { | |
|
199 | QVector<QPointF> points = calculateGeometryPoints(); | |
|
200 | ||
|
201 | if(m_animation) { | |
|
202 | m_animation->setAnimationType(XYAnimation::NewAnimation); | |
|
203 | } | |
|
204 | ||
|
205 | updateChart(m_points,points); | |
|
206 | } | |
|
207 | ||
|
208 | 196 | void XYChart::handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY) |
|
209 | 197 | { |
|
210 | 198 | m_minX=minX; |
@@ -58,7 +58,6 public Q_SLOTS: | |||
|
58 | 58 | void handlePointAdded(int index); |
|
59 | 59 | void handlePointRemoved(int index); |
|
60 | 60 | void handlePointReplaced(int index); |
|
61 | void handleReinitialized(); | |
|
62 | 61 | void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
63 | 62 | void handleGeometryChanged(const QRectF &size); |
|
64 | 63 |
General Comments 0
You need to be logged in to leave comments.
Login now