diff --git a/src/xychart/xychart.cpp b/src/xychart/xychart.cpp index 78086d4..1e7da5b 100644 --- a/src/xychart/xychart.cpp +++ b/src/xychart/xychart.cpp @@ -44,7 +44,6 @@ m_dirty(true) QObject::connect(series->d_func(),SIGNAL(pointReplaced(int)),this,SLOT(handlePointReplaced(int))); QObject::connect(series->d_func(),SIGNAL(pointAdded(int)),this,SLOT(handlePointAdded(int))); QObject::connect(series->d_func(),SIGNAL(pointRemoved(int)),this,SLOT(handlePointRemoved(int))); - QObject::connect(series->d_func(),SIGNAL(reinitialized()),this,SLOT(handleReinitialized())); QObject::connect(this,SIGNAL(clicked(QPointF)),series,SIGNAL(clicked(QPointF))); } @@ -194,17 +193,6 @@ void XYChart::handlePointReplaced(int index) updateChart(m_points,points,index); } -void XYChart::handleReinitialized() -{ - QVector points = calculateGeometryPoints(); - - if(m_animation) { - m_animation->setAnimationType(XYAnimation::NewAnimation); - } - - updateChart(m_points,points); -} - void XYChart::handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY) { m_minX=minX; diff --git a/src/xychart/xychart_p.h b/src/xychart/xychart_p.h index dc6a014..14717db 100644 --- a/src/xychart/xychart_p.h +++ b/src/xychart/xychart_p.h @@ -58,7 +58,6 @@ public Q_SLOTS: void handlePointAdded(int index); void handlePointRemoved(int index); void handlePointReplaced(int index); - void handleReinitialized(); void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY); void handleGeometryChanged(const QRectF &size);